InferencingOptionsPreview.MaxBatchSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deprecated. Gets or sets the maximum batch size for model evaluation.
public:
property int MaxBatchSize { int get(); void set(int value); };
int MaxBatchSize();
void MaxBatchSize(int value);
/// [get: Windows.Foundation.Metadata.Deprecated("Use LearningModel instead of IInferencingOptionsPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("Use LearningModel instead of IInferencingOptionsPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
int MaxBatchSize();
void MaxBatchSize(int value);
public int MaxBatchSize { get; set; }
public int MaxBatchSize { [Windows.Foundation.Metadata.Deprecated("Use LearningModel instead of IInferencingOptionsPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")] get; [Windows.Foundation.Metadata.Deprecated("Use LearningModel instead of IInferencingOptionsPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")] set; }
var int32 = inferencingOptionsPreview.maxBatchSize;
inferencingOptionsPreview.maxBatchSize = int32;
Public Property MaxBatchSize As Integer
Property Value
Int32
int
The maximum batch size. Preview API only supports batching size of 1.
- Attributes
Examples
public void SetEvaluationOptionsForModel(LearningModelPreview model)
{
InferencingOptionsPreview options = model.InferencingOptions;
options.MaxBatchSize = 2;
model.InferencingOptions = options;
}
Remarks
Warning
This is a deprecated API. Please use the Windows.AI.MachineLearning namespace instead.