InferencingOptionsPreview 클래스

정의

더 이상 사용되지 않습니다. 모델 평가를 제어하기 위한 유추 옵션을 나타냅니다.

public ref class InferencingOptionsPreview sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract, 65536)]
class InferencingOptionsPreview final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("Use LearningModelSession instead of InferencingOptionsPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
class InferencingOptionsPreview final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract), 65536)]
public sealed class InferencingOptionsPreview
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("Use LearningModelSession instead of InferencingOptionsPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
public sealed class InferencingOptionsPreview
Public NotInheritable Class InferencingOptionsPreview
상속
Object Platform::Object IInspectable InferencingOptionsPreview
특성

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1803 (10.0.17134.0에서 도입되었습니다.)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (v1.0에서 도입되었습니다.)

예제

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

    model.InferencingOptions = options;
}

설명

경고

더 이상 사용되지 않는 API입니다. 대신 Windows.AI.MachineLearning 네임스페이스를 사용하세요.

속성

IsTracingEnabled

더 이상 사용되지 않습니다. 모델 평가 중에 추적을 사용할 수 있는지 여부를 가져오거나 설정합니다.

MaxBatchSize

더 이상 사용되지 않습니다. 모델 평가의 최대 일괄 처리 크기를 가져오거나 설정합니다.

MinimizeMemoryAllocation

더 이상 사용되지 않습니다. 모델 평가 후 메모리 할당을 최소화할지 여부를 가져오거나 설정합니다.

PreferredDeviceKind

더 이상 사용되지 않습니다. 평가가 수행될 기본 설정 디바이스를 가져오거나 설정합니다.

ReclaimMemoryAfterEvaluation

더 이상 사용되지 않습니다. 모델 평가 후 할당된 메모리를 회수할지 여부를 가져오거나 설정합니다.

적용 대상