Compartir a través de


LearningModelBindingPreview.Bind Método

Definición

Sobrecargas

Bind(String, Object)

En desuso. Enlaza una única característica de entrada o salida a una variable definida.

Bind(String, Object, IPropertySet)

En desuso. Enlaza una única característica de entrada o salida a una variable definida, con metadatos especificados.

Bind(String, Object)

En desuso. Enlaza una única característica de entrada o salida a una variable definida.

public:
 virtual void Bind(Platform::String ^ name, Platform::Object ^ value) = Bind;
/// [Windows.Foundation.Metadata.Overload("Bind")]
void Bind(winrt::hstring const& name, IInspectable const& value);
/// [Windows.Foundation.Metadata.Overload("Bind")]
/// [Windows.Foundation.Metadata.Deprecated("Use ILearningModelBinding instead of ILearningModelBindingPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
void Bind(winrt::hstring const& name, IInspectable const& value);
[Windows.Foundation.Metadata.Overload("Bind")]
public void Bind(string name, object value);
[Windows.Foundation.Metadata.Overload("Bind")]
[Windows.Foundation.Metadata.Deprecated("Use ILearningModelBinding instead of ILearningModelBindingPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
public void Bind(string name, object value);
function bind(name, value)
Public Sub Bind (name As String, value As Object)

Parámetros

name
String

Platform::String

winrt::hstring

Nombre de la característica de entrada y salida.

value
Object

Platform::Object

IInspectable

Valor de la característica de entrada y salida.

Atributos

Ejemplos

public void PrepareBinding(LearningModelPreview model, VideoFrame picture)
{
	ImageVariableDescriptorPreview inputImageDescription;
	List<ILearningModelVariableDescriptorPreview> inputFeatures = model.Description.InputFeatures.ToList();

    inputImageDescription =
         inputFeatures.FirstOrDefault(feature => feature.ModelFeatureKind == LearningModelFeatureKindPreview.Image)
         as ImageVariableDescriptorPreview;

    // Bind the image
    var binding = new LearningModelBindingPreview(model);
    binding.Bind(inputImageDescription, picture);
}

Comentarios

Nota: Actualmente, no se admiten salidas de tipo double . Si es posible, considere la posibilidad de usar el tipo float en su lugar.

Advertencia

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

Se aplica a

Bind(String, Object, IPropertySet)

En desuso. Enlaza una única característica de entrada o salida a una variable definida, con metadatos especificados.

public:
 virtual void Bind(Platform::String ^ name, Platform::Object ^ value, IPropertySet ^ metadata) = Bind;
/// [Windows.Foundation.Metadata.Overload("BindWithProperties")]
void Bind(winrt::hstring const& name, IInspectable const& value, IPropertySet const& metadata);
/// [Windows.Foundation.Metadata.Overload("BindWithProperties")]
/// [Windows.Foundation.Metadata.Deprecated("Use ILearningModelBinding instead of ILearningModelBindingPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
void Bind(winrt::hstring const& name, IInspectable const& value, IPropertySet const& metadata);
[Windows.Foundation.Metadata.Overload("BindWithProperties")]
public void Bind(string name, object value, IPropertySet metadata);
[Windows.Foundation.Metadata.Overload("BindWithProperties")]
[Windows.Foundation.Metadata.Deprecated("Use ILearningModelBinding instead of ILearningModelBindingPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
public void Bind(string name, object value, IPropertySet metadata);
function bind(name, value, metadata)
Public Sub Bind (name As String, value As Object, metadata As IPropertySet)

Parámetros

name
String

Platform::String

winrt::hstring

Nombre de la característica de entrada y salida.

value
Object

Platform::Object

IInspectable

Valor de la característica de entrada y salida.

metadata
IPropertySet

Metadatos especificados para la característica de entrada y salida.

Atributos

Comentarios

Nota: Actualmente, no se admiten salidas de tipo double . Si es posible, considere la posibilidad de usar el tipo float en su lugar.

Advertencia

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

Se aplica a