41 references to TensorFlowUtils
Microsoft.ML.TensorFlow (15)
TensorflowCatalog.cs (2)
37
=>
TensorFlowUtils
.LoadTensorFlowModel(CatalogUtils.GetEnvironment(catalog), modelLocation);
63
=>
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)
580
var schema =
TensorFlowUtils
.GetModelSchema(_mlContext, modelLocation);
587
var metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowOperatorTypeKind].Type;
591
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowOperatorTypeKind, ref opType);
593
metadataType = schema[col].Annotations.Schema.GetColumnOrNull(
TensorFlowUtils
.TensorflowUpstreamOperatorsKind)?.Type;
599
metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowOperatorTypeKind].Type;
602
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowOperatorTypeKind, ref opType);
604
metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowUpstreamOperatorsKind].Type;
607
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowUpstreamOperatorsKind, ref inputOps);
614
metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowOperatorTypeKind].Type;
617
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowOperatorTypeKind, ref opType);
619
metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowUpstreamOperatorsKind].Type;
621
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowUpstreamOperatorsKind, ref inputOps);
629
metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowOperatorTypeKind].Type;
632
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowOperatorTypeKind, ref opType);
634
metadataType = schema[col].Annotations.Schema[
TensorFlowUtils
.TensorflowUpstreamOperatorsKind].Type;
636
schema[col].Annotations.GetValue(
TensorFlowUtils
.TensorflowUpstreamOperatorsKind, ref inputOps);
641
schema =
TensorFlowUtils
.GetModelSchema(_mlContext, modelLocation);
1134
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
;