InferencingOptionsPreview.ReclaimMemoryAfterEvaluation Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deprecated. Gets or sets whether to reclaim allocated memory after the model evaluation.
public:
property bool ReclaimMemoryAfterEvaluation { bool get(); void set(bool value); };
bool ReclaimMemoryAfterEvaluation();
void ReclaimMemoryAfterEvaluation(bool 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")]
bool ReclaimMemoryAfterEvaluation();
void ReclaimMemoryAfterEvaluation(bool value);
public bool ReclaimMemoryAfterEvaluation { get; set; }
public bool ReclaimMemoryAfterEvaluation { [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 boolean = inferencingOptionsPreview.reclaimMemoryAfterEvaluation;
inferencingOptionsPreview.reclaimMemoryAfterEvaluation = boolean;
Public Property ReclaimMemoryAfterEvaluation As Boolean
Property Value
Boolean
bool
True if reclaiming allocated memory after evaluation; otherwise false. The default value is false.
- Attributes
Examples
public void SetEvaluationOptionsForModel(LearningModelPreview model)
{
InferencingOptionsPreview options = model.InferencingOptions;
options.ReclaimMemoryAfterEvaluation = true;
model.InferencingOptions = options;
}
Remarks
Warning
This is a deprecated API. Please use the Windows.AI.MachineLearning namespace instead.