1 instantiation of TensorFlowModel
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
145
return new
TensorFlowModel
(env, session, modelPath, treatOutputAsBatched: treatOutputAsBatched);
40 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)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (1)
42
using
var
model = mlContext.Model.LoadTensorFlowModel(modelLocation);
docs\samples\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
36
public 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
62
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)
131
using
var
model = LoadTensorFlowModel(env, modelPath, treatOutputAsBatched);
142
internal static
TensorFlowModel
LoadTensorFlowModel(IHostEnvironment env, string modelPath, bool treatOutputAsBatched = true)
Microsoft.ML.TensorFlow.Tests (17)
TensorFlowEstimatorTests.cs (5)
81
using
var
model = ML.Model.LoadTensorFlowModel(modelFile);
123
using
var
model = ML.Model.LoadTensorFlowModel(modelFile);
239
using
var
tensorFlowModel = TensorFlowUtils.LoadTensorFlowModel(mlContext, modelLocation);
288
TensorFlowModel
model1 = context.Model.LoadTensorFlowModel(modelFile1);
289
TensorFlowModel
model2 = context.Model.LoadTensorFlowModel(modelFile2);
TensorflowTests.cs (12)
199
using
var
tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
291
using
var
tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
413
using
var
tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
510
using
var
tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
556
using
var
tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
1002
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
1061
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
1105
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(modelLocation);
1234
using
TensorFlowModel
model = _mlContext.Model.LoadTensorFlowModel(modelLocation);
1343
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(@"model_string_test");
1370
using
var
tensorFlowModel = _mlContext.Model.LoadTensorFlowModel(@"model_primitive_input_test");
2060
using (
var
tfModel = _mlContext.Model.LoadTensorFlowModel(modelLocation))