Compartir a través de


InferencingOptionsPreview.IsTracingEnabled Propiedad

Definición

En desuso. Obtiene o establece si el seguimiento está habilitado durante la evaluación del modelo.

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

Valor de propiedad

Boolean

bool

True si el seguimiento está habilitado; en caso contrario, false. El valor predeterminado es false.

Atributos

Ejemplos

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

    model.InferencingOptions = options;
}

Comentarios

Advertencia

Se trata de una API en desuso. Use el espacio de nombres Windows.AI.MachineLearning en su lugar.

Se aplica a