MLOperatorAttribute struct

Specifies the name and properties of an attribute of a custom operator. This is used when registering custom operator kernels and custom operator schema.

Fields

Name Type Description
name char* NULL-terminated UTF-8 string representing the name of the attribute in the associated operator type.
required bool Whether the attribute is required in any model using the associated operator type.
type MLOperatorAttributeType The type of the attribute in the associated operator type.

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.