You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Microsoft.ML.TensorFlow/TensorFlowModel.cs
+14-6
Original file line number
Diff line number
Diff line change
@@ -55,30 +55,34 @@ public DataViewSchema GetInputSchema()
55
55
/// </summary>
56
56
/// <param name="inputColumnName"> The name of the model input.</param>
57
57
/// <param name="outputColumnName">The name of the requested model output.</param>
58
+
/// <param name="addBatchDimensionInput">Add a batch dimension to the input e.g. input = [224, 224, 3] => [-1, 224, 224, 3].
59
+
/// This parameter is used to deal with models that have unknown shape but the internal operators in the model require data to have batch dimension as well.</param>
/// Scores a dataset using a pre-traiend TensorFlow model.
70
72
/// </summary>
71
73
/// <param name="inputColumnNames"> The names of the model inputs.</param>
72
74
/// <param name="outputColumnNames">The names of the requested model outputs.</param>
75
+
/// <param name="addBatchDimensionInput">Add a batch dimension to the input e.g. input = [224, 224, 3] => [-1, 224, 224, 3].
76
+
/// This parameter is used to deal with models that have unknown shape but the internal operators in the model require data to have batch dimension as well.</param>
@@ -97,6 +101,8 @@ public TensorFlowEstimator ScoreTensorFlowModel(string[] outputColumnNames, stri
97
101
/// <param name="metricOperation">The name of the operation in the TensorFlow graph to compute performance metric during training (Optional).</param>
98
102
/// <param name="learningRateOperation">The name of the operation in the TensorFlow graph which sets optimizer learning rate (Optional).</param>
99
103
/// <param name="learningRate">Learning rate to use during optimization (Optional).</param>
104
+
/// <param name="addBatchDimensionInput">Add a batch dimension to the input e.g. input = [224, 224, 3] => [-1, 224, 224, 3].
105
+
/// This parameter is used to deal with models that have unknown shape but the internal operators in the model require data to have batch dimension as well.</param>
100
106
/// <remarks>
101
107
/// The support for retraining is experimental.
102
108
/// </remarks>
@@ -111,7 +117,8 @@ public TensorFlowEstimator RetrainTensorFlowModel(
111
117
stringlossOperation=null,
112
118
stringmetricOperation=null,
113
119
stringlearningRateOperation=null,
114
-
floatlearningRate=0.01f)
120
+
floatlearningRate=0.01f,
121
+
booladdBatchDimensionInput=false)
115
122
{
116
123
varoptions=newTensorFlowEstimator.Options()
117
124
{
@@ -127,7 +134,8 @@ public TensorFlowEstimator RetrainTensorFlowModel(
Copy file name to clipboardExpand all lines: src/Microsoft.ML.TensorFlow/TensorflowCatalog.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ public static class TensorflowCatalog
14
14
{
15
15
/// <summary>
16
16
/// Load TensorFlow model into memory. This is the convenience method that allows the model to be loaded once and subsequently use it for querying schema and creation of
17
-
/// <see cref="TensorFlowEstimator"/> using <see cref="TensorFlowModel.ScoreTensorFlowModel(string, string)"/>.
17
+
/// <see cref="TensorFlowEstimator"/> using <see cref="TensorFlowModel.ScoreTensorFlowModel(string, string, bool)"/>.
0 commit comments