WINML_VARIABLE_DESC structure

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

These APIs have been deprecated and should no longer be used:  Please use Windows.AI.MachineLearning instead.

Contains description properties of the variable.

Syntax

typedef struct WINML_VARIABLE_DESC {
  LPWSTR             Name;
  LPWSTR             Description;
  WINML_FEATURE_TYPE FeatureType;
  BOOL               Required;
  union {
    WINML_TENSOR_VARIABLE_DESC   Tensor;
    WINML_SEQUENCE_VARIABLE_DESC Sequence;
    WINML_MAP_VARIABLE_DESC      Map;
    WINML_IMAGE_VARIABLE_DESC    Image;
  };
} WINML_VARIABLE_DESC;

Members

Name

The name of the variable.

Description

The description of the variable.

FeatureType

A WINML_FEATURE_TYPE containing the feature type of variable.

Required

true if the variable is required; otherwise, false.

Tensor

A WINML_TENSOR_VARIABLE_DESC containing the description of the tensor variable.

Sequence

A WINML_SEQUENCE_VARIABLE_DESC containing the description of the sequence variable.

Map

A WINML_MAP_VARIABLE_DESC containing the description of the map variable.

Image

A WINML_IMAGE_VARIABLE_DESC containing the description of the image variable.

Requirements

   
Minimum supported client Windows 10, version 1803 [desktop apps only]
Minimum supported server Windows Server [desktop apps only]
Header winml.h