1 instantiation of TensorFlowModel
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
146
return new
TensorFlowModel
(env, session, modelPath, treatOutputAsBatched: treatOutputAsBatched);
48 references to TensorFlowModel
DnnAnalyzer (1)
DnnAnalyzer.cs (1)
32
var
tensorFlowModel = mlContext.Model.LoadTensorFlowModel(modelPath);
Microsoft.ML.Samples (2)
Dynamic\TensorFlow\ImageClassification.cs (1)
42
using
var
model = mlContext.Model.LoadTensorFlowModel(modelLocation);
Dynamic\TensorFlow\TextClassification.cs (1)
63
using
var
tensorFlowModel = mlContext.Model.LoadTensorFlowModel(
Microsoft.ML.Samples.GPU (2)
parent\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (1)
42
using
var
model = mlContext.Model.LoadTensorFlowModel(modelLocation);
parent\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (1)
63
using
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
37
public static
TensorFlowModel
LoadTensorFlowModel(this ModelOperationsCatalog catalog, string modelLocation)
42
/// <see cref="TensorFlowEstimator"/> using <see cref="
TensorFlowModel
.ScoreTensorFlowModel(string, string, bool)"/>.
44
/// <see cref="
TensorFlowModel
"/> also holds references to unmanaged resources that need to be freed either with an explicit
64
public 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>
104
internal 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>
122
internal TensorFlowTransformer(IHostEnvironment env,
TensorFlowModel
tfModelInfo, string[] outputColumnNames, string[] inputColumnNames, bool addBatchDimensionInput = false, bool treatOutputAsBatched = true)
206
internal TensorFlowTransformer(IHostEnvironment env, TensorFlowEstimator.Options options,
TensorFlowModel
tensorFlowModel, IDataView input, IDataView validationSet = null)
980
private readonly
TensorFlowModel
_tensorFlowModel;
991
internal TensorFlowEstimator(IHostEnvironment env, string[] outputColumnNames, string[] inputColumnNames,
TensorFlowModel
tensorFlowModel, bool addBatchDimensionInput)
1001
internal TensorFlowEstimator(IHostEnvironment env, Options options,
TensorFlowModel
tensorFlowModel)
1015
private static Options CreateArguments(
TensorFlowModel
tensorFlowModel, string[] outputColumnNames, string[] inputColumnName, bool addBatchDimensionInput, bool treatOutputAsBatched = true)
TensorflowUtils.cs (2)
132
using
var
model = LoadTensorFlowModel(env, modelPath, treatOutputAsBatched);
143
internal static
TensorFlowModel
LoadTensorFlowModel(IHostEnvironment env, string modelPath, bool treatOutputAsBatched = true)
Microsoft.ML.TensorFlow.Tests (25)
TensorFlowEstimatorTests.cs (8)
81
using
var
model = ML.Model.LoadTensorFlowModel(modelFile);
123
using
var
model = ML.Model.LoadTensorFlowModel(modelFile);
170
using
var
tensorFlowModel = ML.Model.LoadTensorFlowModel(modelLocation);
214
using
var
unbatchedTensorFlowModel = ML.Model.LoadTensorFlowModel(modelLocation, false);
230
using
var
batchedTensorFlowModel = ML.Model.LoadTensorFlowModel(modelLocation);
252
using
var
tensorFlowModel = TensorFlowUtils.LoadTensorFlowModel(mlContext, modelLocation);
301
using
TensorFlowModel
model1 = context.Model.LoadTensorFlowModel(modelFile1);
302
using
TensorFlowModel
model2 = context.Model.LoadTensorFlowModel(modelFile2);
TensorflowTests.cs (17)
133
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
185
using
var
tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
277
using
var
tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
399
using
var
tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
496
using
var
tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
542
using
var
tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
654
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel("mnist_model/frozen_saved_model.pb");
879
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel("mnist_model");
990
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
1049
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
1093
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
1146
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
1225
using
TensorFlowModel
model = _mlContext.Model.LoadTensorFlowModel(modelLocation);
1280
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
1335
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(@"model_string_test");
1362
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(@"model_primitive_input_test");
2039
using (
var
tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation))