41 references to TensorFlowUtils
Microsoft.ML.TensorFlow (15)
TensorflowCatalog.cs (2)
38
=>
TensorFlowUtils
.LoadTensorFlowModel(CatalogUtils.GetEnvironment(catalog), modelLocation);
65
=>
TensorFlowUtils
.LoadTensorFlowModel(CatalogUtils.GetEnvironment(catalog), modelLocation, treatOutputAsBatched);
TensorFlowModel.cs (2)
46
return
TensorFlowUtils
.GetModelSchema(_env, Session.graph, TreatOutputAsBatched);
55
return
TensorFlowUtils
.GetModelSchema(_env, Session.graph, TreatOutputAsBatched, "Placeholder");
TensorflowTransform.cs (11)
21
using static Microsoft.ML.TensorFlow.
TensorFlowUtils
;
95
/// It is useful in a situation where user has already loaded TensorFlow model using <see cref="
TensorFlowUtils
.LoadTensorFlowModel(IHostEnvironment, string, bool)"/> for inspecting model schema.
98
/// <param name="tfModelInfo"> <see cref="TensorFlowModel"/> object created with <see cref="
TensorFlowUtils
.LoadTensorFlowModel(IHostEnvironment, string, bool)"/>.</param>
113
/// It is useful in a situation where user has already loaded TensorFlow model using <see cref="
TensorFlowUtils
.LoadTensorFlowModel(IHostEnvironment, string, bool)"/> for inspecting model schema.
116
/// <param name="tfModelInfo"> <see cref="TensorFlowModel"/> object created with <see cref="
TensorFlowUtils
.LoadTensorFlowModel(IHostEnvironment, string, bool)"/>.</param>
202
: this(env, options,
TensorFlowUtils
.LoadTensorFlowModel(env, options.ModelLocation), input)
845
var tensor =
TensorFlowUtils
.CastDataAndReturnAsTensor(scalar);
905
var tensor =
TensorFlowUtils
.CastDataAndReturnAsTensor(_denseData, _tfShape);
919
var tensor =
TensorFlowUtils
.CastDataAndReturnAsTensor(_denseData, _tfShape);
987
: this(env, outputColumnNames, inputColumnNames,
TensorFlowUtils
.LoadTensorFlowModel(env, modelLocation), addBatchDimensionInput)
997
: this(env, options,
TensorFlowUtils
.LoadTensorFlowModel(env, options.ModelLocation, options.TreatOutputAsBatched))
Microsoft.ML.TensorFlow.Tests (19)
TensorFlowEstimatorTests.cs (1)
241
using var tensorFlowModel =
TensorFlowUtils
.LoadTensorFlowModel(mlContext, modelLocation);
TensorflowTests.cs (18)
564
var schema =
TensorFlowUtils
.GetModelSchema(_mlContext, modelLocation);
571
var metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowOperatorTypeKind].Type;
575
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowOperatorTypeKind, ref opType);
577
metadataType = schema[col].Annotations.Schema.GetColumnOrNull(
TensorFlowUtils
.TensorflowUpstreamOperatorsKind)?.Type;
583
metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowOperatorTypeKind].Type;
586
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowOperatorTypeKind, ref opType);
588
metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowUpstreamOperatorsKind].Type;
591
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowUpstreamOperatorsKind, ref inputOps);
598
metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowOperatorTypeKind].Type;
601
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowOperatorTypeKind, ref opType);
603
metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowUpstreamOperatorsKind].Type;
605
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowUpstreamOperatorsKind, ref inputOps);
613
metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowOperatorTypeKind].Type;
616
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowOperatorTypeKind, ref opType);
618
metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowUpstreamOperatorsKind].Type;
620
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowUpstreamOperatorsKind, ref inputOps);
625
schema =
TensorFlowUtils
.GetModelSchema(_mlContext, modelLocation);
1118
var schema =
TensorFlowUtils
.GetModelSchema(_mlContext, modelLocation);
Microsoft.ML.Vision (7)
DnnRetrainTransform.cs (5)
19
using static Microsoft.ML.TensorFlow.
TensorFlowUtils
;
114
return new DnnRetrainTransformer(env,
TensorFlowUtils
.LoadTFSession(env, modelBytes), outputs, inputs,
1043
var tensor =
TensorFlowUtils
.CastDataAndReturnAsTensor(_bufferedData, _tfShape);
1091
return
TensorFlowUtils
.CastDataAndReturnAsTensor(_denseData, _tfShape);
1104
var tensor =
TensorFlowUtils
.CastDataAndReturnAsTensor(_bufferedData, _tfShape);
ImageClassificationTrainer.cs (1)
28
using static Microsoft.ML.TensorFlow.
TensorFlowUtils
;
VisionCatalog.cs (1)
9
using static Microsoft.ML.TensorFlow.
TensorFlowUtils
;