MLOperatorSchemaDescription struct

Description of a custom operator schema used to register that schema.

Fields

Name Type Description
attributeCount uint32_t The number of provided attributes.
attributes const MLOperatorAttribute* The set of attributes supported by the operator type.
defaultAttributeCount uint32_t The number of provided default attribute values.
defaultAttributes const MLOperatorAttributeNameValue* The default values of attributes. These will be applied when the attributes are missing in a model containing the operator type.
inputCount uint32_t The number of inputs of the operator.
inputs const MLOperatorSchemaEdgeDescription* An array containing the descriptions of the operator's input edges.
name const char* NULL-terminated UTF-8 string representing the name of the operator.
operatorSetVersionAtLastChange int32_t The operator set version at which this operator was introduced or last changed.
outputCount uint32_t The number of outputs of the operator.
outputs const MLOperatorSchemaEdgeDescription* An array containing the descriptions of the operator's output edges.
typeConstraintCount uint32_t The number of type constraints provided.
typeConstraints const MLOperatorEdgeTypeConstraint* An array of type constraints. Each constraint restricts input and outputs associated with a type label string to one or more edge types.

Requirements

Requirement
Minimum supported client Windows 10, build 17763
Minimum supported server Windows Server 2019 with Desktop Experience
Header MLOperatorAuthor.h

Note

Use the following resources for help with Windows ML:

  • To ask or answer technical questions about Windows ML, please use the windows-machine-learning tag on Stack Overflow.
  • To report a bug, please file an issue on our GitHub.