1 instantiation of TensorFlowModel
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
145return new TensorFlowModel(env, session, modelPath, treatOutputAsBatched: treatOutputAsBatched);
40 references to TensorFlowModel
DnnAnalyzer (1)
DnnAnalyzer.cs (1)
32var tensorFlowModel = mlContext.Model.LoadTensorFlowModel(modelPath);
Microsoft.ML.Samples (2)
Dynamic\TensorFlow\ImageClassification.cs (1)
42using var model = mlContext.Model.LoadTensorFlowModel(modelLocation);
Dynamic\TensorFlow\TextClassification.cs (1)
63using var tensorFlowModel = mlContext.Model.LoadTensorFlowModel(
Microsoft.ML.Samples.GPU (2)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (1)
42using var model = mlContext.Model.LoadTensorFlowModel(modelLocation);
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (1)
63using var tensorFlowModel = mlContext.Model.LoadTensorFlowModel(
Microsoft.ML.TensorFlow (18)
TensorflowCatalog.cs (6)
16/// <see cref="TensorFlowEstimator"/> using <see cref="TensorFlowModel.ScoreTensorFlowModel(string, string, bool)"/>. 18/// <see cref="TensorFlowModel"/> also holds references to unmanaged resources that need to be freed either with an explicit 36public static TensorFlowModel LoadTensorFlowModel(this ModelOperationsCatalog catalog, string modelLocation) 41/// <see cref="TensorFlowEstimator"/> using <see cref="TensorFlowModel.ScoreTensorFlowModel(string, string, bool)"/>. 43/// <see cref="TensorFlowModel"/> also holds references to unmanaged resources that need to be freed either with an explicit 62public static TensorFlowModel LoadTensorFlowModel(this ModelOperationsCatalog catalog, string modelLocation, bool treatOutputAsBatched)
TensorFlowModel.cs (1)
26/// Instantiates <see cref="TensorFlowModel"/>.
TensorflowTransform.cs (9)
98/// <param name="tfModelInfo"> <see cref="TensorFlowModel"/> object created with <see cref="TensorFlowUtils.LoadTensorFlowModel(IHostEnvironment, string, bool)"/>.</param> 104internal TensorFlowTransformer(IHostEnvironment env, TensorFlowModel tfModelInfo, string outputColumnName, string inputColumnName = null, bool addBatchDimensionInput = false, bool treatOutputAsBatched = true) 116/// <param name="tfModelInfo"> <see cref="TensorFlowModel"/> object created with <see cref="TensorFlowUtils.LoadTensorFlowModel(IHostEnvironment, string, bool)"/>.</param> 122internal TensorFlowTransformer(IHostEnvironment env, TensorFlowModel tfModelInfo, string[] outputColumnNames, string[] inputColumnNames, bool addBatchDimensionInput = false, bool treatOutputAsBatched = true) 206internal TensorFlowTransformer(IHostEnvironment env, TensorFlowEstimator.Options options, TensorFlowModel tensorFlowModel, IDataView input, IDataView validationSet = null) 980private readonly TensorFlowModel _tensorFlowModel; 991internal TensorFlowEstimator(IHostEnvironment env, string[] outputColumnNames, string[] inputColumnNames, TensorFlowModel tensorFlowModel, bool addBatchDimensionInput) 1001internal TensorFlowEstimator(IHostEnvironment env, Options options, TensorFlowModel tensorFlowModel) 1015private static Options CreateArguments(TensorFlowModel tensorFlowModel, string[] outputColumnNames, string[] inputColumnName, bool addBatchDimensionInput, bool treatOutputAsBatched = true)
TensorflowUtils.cs (2)
131using var model = LoadTensorFlowModel(env, modelPath, treatOutputAsBatched); 142internal static TensorFlowModel LoadTensorFlowModel(IHostEnvironment env, string modelPath, bool treatOutputAsBatched = true)
Microsoft.ML.TensorFlow.Tests (17)
TensorFlowEstimatorTests.cs (5)
81using var model = ML.Model.LoadTensorFlowModel(modelFile); 123using var model = ML.Model.LoadTensorFlowModel(modelFile); 239using var tensorFlowModel = TensorFlowUtils.LoadTensorFlowModel(mlContext, modelLocation); 288TensorFlowModel model1 = context.Model.LoadTensorFlowModel(modelFile1); 289TensorFlowModel model2 = context.Model.LoadTensorFlowModel(modelFile2);
TensorflowTests.cs (12)
199using var tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation); 291using var tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation); 413using var tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation); 510using var tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation); 556using var tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation); 1002using var tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(modelLocation); 1061using var tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(modelLocation); 1105using var tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(modelLocation); 1234using TensorFlowModel model = _mlContext.Model.LoadTensorFlowModel(modelLocation); 1343using var tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(@"model_string_test"); 1370using var tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(@"model_primitive_input_test"); 2060using (var tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation))