다음을 통해 공유


LearningModelBindingPreview.Clear 메서드

정의

더 이상 사용되지 않습니다. 모든 바인딩된 변수를 지웁니다.

public:
 virtual void Clear() = Clear;
void Clear();
/// [Windows.Foundation.Metadata.Deprecated("Use ILearningModelBinding instead of ILearningModelBindingPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
void Clear();
public void Clear();
[Windows.Foundation.Metadata.Deprecated("Use ILearningModelBinding instead of ILearningModelBindingPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
public void Clear();
function clear()
Public Sub Clear ()
특성

예제

public void PrepareBinding(LearningModelPreview model, VideoFrame picture)
{
	ImageVariableDescriptorPreview inputImageDescription;
	List<ILearningModelVariableDescriptorPreview> inputFeatures = model.Description.InputFeatures.ToList();

    inputImageDescription =
         inputFeatures.FirstOrDefault(feature => feature.ModelFeatureKind == LearningModelFeatureKindPreview.Image)
         as ImageVariableDescriptorPreview;

    // Bind the image
    var binding = new LearningModelBindingPreview(model);
    binding.Bind(inputImageDescription, picture);
}

	//Evaluate and other application logic
	...


	binding.Clear();
}

설명

경고

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

적용 대상