Condividi tramite


TensorVariableDescriptorPreview.Name Proprietà

Definizione

Deprecato. Ottiene il nome del tensore.

public:
 property Platform::String ^ Name { Platform::String ^ get(); };
winrt::hstring Name();
/// [get: Windows.Foundation.Metadata.Deprecated("Use ILearningModelFeatureDescriptor instead of ILearningModelVariableDescriptorPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
winrt::hstring Name();
public string Name { get; }
public string Name { [Windows.Foundation.Metadata.Deprecated("Use ILearningModelFeatureDescriptor instead of ILearningModelVariableDescriptorPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")] get; }
var string = tensorVariableDescriptorPreview.name;
Public ReadOnly Property Name As String

Valore della proprietà

String

Platform::String

winrt::hstring

Nome del tensore. Questa operazione deve essere univoca in tutte le variabili del modello.

Implementazioni

Attributi

Esempio

public void Evaluator(LearningModelPreview model)
{
	// Retrieve the first input feature which is a Tensor
    ILearningModelVariableDescriptorPreview inputTensorFeatureDescription = model.Description.InputFeatures.First(feature=>feature.ModelFeatureKind == LearningModelFeatureKindPreview.Tensor);

    TensorVariableDescriptorPreview TensorDescriptor = (TensorVariableDescriptorPreview)inputTensorFeatureDescription;

	// Output the description of the Tensor variable
    Console.WriteLine($"Input Feature Name: {TensorDescriptor.Name}. Description: {TensorDescriptor.Description}.");
 }

Commenti

Avviso

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

Si applica a