Ejemplo n.º 1
0
        private string GeneratPredictProjectFileContent(string namespaceValue, bool includeLightGbmPackage,
                                                        bool includeMklComponentsPackage, bool includeFastTreePackage, bool includeImageTransformerPackage,
                                                        bool includeImageClassificationPackage, bool includeRecommenderPackage,
                                                        bool includeOnnxPackage, bool includeResNet18Package,
                                                        string stablePackageVersion, string unstablePackageVersion, GenerateTarget target)
        {
            var predictProjectFileContent = new PredictProject()
            {
                Namespace = namespaceValue,
                IncludeMklComponentsPackage       = includeMklComponentsPackage,
                IncludeLightGBMPackage            = includeLightGbmPackage,
                IncludeFastTreePackage            = includeFastTreePackage,
                IncludeImageTransformerPackage    = includeImageTransformerPackage,
                IncludeImageClassificationPackage = includeImageClassificationPackage,
                IncludeOnnxPackage        = includeOnnxPackage,
                IncludeResNet18Package    = includeResNet18Package,
                IncludeRecommenderPackage = includeRecommenderPackage,
                StablePackageVersion      = stablePackageVersion,
                UnstablePackageVersion    = unstablePackageVersion,
                OnnxRuntimePackageVersion = _settings.OnnxRuntimePacakgeVersion,
                Target = target,
            };

            return(predictProjectFileContent.TransformText());
        }
Ejemplo n.º 2
0
        private static string GeneratPredictProjectFileContent(string namespaceValue, bool includeLightGbmPackage, bool includeMklComponentsPackage, bool includeFastTreePackage)
        {
            var predictProjectFileContent = new PredictProject()
            {
                Namespace = namespaceValue, IncludeMklComponentsPackage = includeMklComponentsPackage, IncludeLightGBMPackage = includeLightGbmPackage, IncludeFastTreePackage = includeFastTreePackage
            };

            return(predictProjectFileContent.TransformText());
        }
        private static string GeneratPredictProjectFileContent(string namespaceValue, bool includeLightGbmPackage,
                                                               bool includeMklComponentsPackage, bool includeFastTreePackage, bool includeImageTransformerPackage,
                                                               bool includeImageClassificationPackage, bool includeRecommenderPackage,
                                                               string stablePackageVersion, string unstablePackageVersion)
        {
            var predictProjectFileContent = new PredictProject()
            {
                Namespace = namespaceValue,
                IncludeMklComponentsPackage       = includeMklComponentsPackage,
                IncludeLightGBMPackage            = includeLightGbmPackage,
                IncludeFastTreePackage            = includeFastTreePackage,
                IncludeImageTransformerPackage    = includeImageTransformerPackage,
                IncludeImageClassificationPackage = includeImageClassificationPackage,
                IncludeRecommenderPackage         = includeRecommenderPackage,
                StablePackageVersion   = stablePackageVersion,
                UnstablePackageVersion = unstablePackageVersion
            };

            return(predictProjectFileContent.TransformText());
        }