InferencingOptionsPreview InferencingOptionsPreview InferencingOptionsPreview InferencingOptionsPreview InferencingOptionsPreview Class

Definition

Deprecated. Represents the inference options for controlling the evaluation of a model.

public : sealed class InferencingOptionsPreview
struct winrt::Windows::AI::MachineLearning::Preview::InferencingOptionsPreview
public sealed class InferencingOptionsPreview
Public NotInheritable Class InferencingOptionsPreview
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (introduced v2)

Examples

void SetEvaluationOptionsForModel(LearningModelPreview model)
{
    // Set our preference to use the GPU
    InferencingOptionsPreview options = model.InferencingOptions;
    options.PreferredDeviceKind = LearningModelDeviceKindPreview.LearningDeviceGpu;
 
    model.InferencingOptions = options;
}

Remarks

Warning

This is a deprecated API. Please use the Windows.AI.MachineLearning namespace instead.

Properties

IsTracingEnabled IsTracingEnabled IsTracingEnabled IsTracingEnabled IsTracingEnabled

Deprecated. Gets or sets whether tracing is enabled during model evaluation.

MaxBatchSize MaxBatchSize MaxBatchSize MaxBatchSize MaxBatchSize

Deprecated. Gets or sets the maximum batch size for model evaluation.

MinimizeMemoryAllocation MinimizeMemoryAllocation MinimizeMemoryAllocation MinimizeMemoryAllocation MinimizeMemoryAllocation

Deprecated. Gets or sets whether to minimize memory allocation after model evaluation.

PreferredDeviceKind PreferredDeviceKind PreferredDeviceKind PreferredDeviceKind PreferredDeviceKind

Deprecated. Gets or sets the preferred device that the evaluation will be performed on.

ReclaimMemoryAfterEvaluation ReclaimMemoryAfterEvaluation ReclaimMemoryAfterEvaluation ReclaimMemoryAfterEvaluation ReclaimMemoryAfterEvaluation

Deprecated. Gets or sets whether to reclaim allocated memory after the model evaluation.