InferencingOptionsPreview.ReclaimMemoryAfterEvaluation Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Action déconseillée. Obtient ou définit s’il faut récupérer la mémoire allouée après l’évaluation du modèle.
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
Valeur de propriété
bool
True si vous récupérez la mémoire allouée après l’évaluation ; sinon, false. La valeur par défaut est false.
- Attributs
Exemples
public void SetEvaluationOptionsForModel(LearningModelPreview model)
{
InferencingOptionsPreview options = model.InferencingOptions;
options.ReclaimMemoryAfterEvaluation = true;
model.InferencingOptions = options;
}
Remarques
Avertissement
Il s’agit d’une API déconseillée. Utilisez plutôt l’espace de noms Windows.AI.MachineLearning .