Condividi tramite


InferencingOptionsPreview.MaxBatchSize Proprietà

Definizione

Deprecato. Ottiene o imposta la dimensione massima del batch per la valutazione del modello.

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

Valore della proprietà

Int32

int

Dimensioni massime del batch. L'API di anteprima supporta solo le dimensioni in batch pari a 1.

Attributi

Esempio

public void SetEvaluationOptionsForModel(LearningModelPreview model)
{
    InferencingOptionsPreview options = model.InferencingOptions;
    options.MaxBatchSize = 2;

    model.InferencingOptions = options;
}

Commenti

Avviso

Si tratta di un'API deprecata. Usare invece lo spazio dei nomi Windows.AI.MachineLearning .

Si applica a