Compartilhar via


InferencingOptionsPreview.MaxBatchSize Propriedade

Definição

Preterido. Obtém ou define o tamanho máximo do lote para avaliação do modelo.

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

Valor da propriedade

Int32

int

O tamanho máximo do lote. A API de visualização dá suporte apenas ao tamanho de envio em lote de 1.

Atributos

Exemplos

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

    model.InferencingOptions = options;
}

Comentários

Aviso

Essa é uma API preterida. Use o namespace Windows.AI.MachineLearning .

Aplica-se a