Condividi tramite


InferencingOptionsPreview.IsTracingEnabled Proprietà

Definizione

Deprecato. Ottiene o imposta se la traccia è abilitata durante la valutazione del modello.

public:
 property bool IsTracingEnabled { bool get(); void set(bool value); };
bool IsTracingEnabled();

void IsTracingEnabled(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 IsTracingEnabled();

void IsTracingEnabled(bool value);
public bool IsTracingEnabled { get; set; }
public bool IsTracingEnabled { [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.isTracingEnabled;
inferencingOptionsPreview.isTracingEnabled = boolean;
Public Property IsTracingEnabled As Boolean

Valore della proprietà

Boolean

bool

True se la traccia è abilitata; in caso contrario false. Il valore predefinito è false.

Attributi

Esempio

public void SetEvaluationOptionsForModel(LearningModelPreview model)
{
    InferencingOptionsPreview options = model.InferencingOptions;
    options.IsTracingEnabled = true;

    model.InferencingOptions = options;
}

Commenti

Avviso

Si tratta di un'API deprecata. Usare invece lo spazio dei nomi Windows.AI.MachineLearning .

Si applica a