OrtApi.CreateOpaqueValue

Construct OrtValue that contains a value of non-standard type created for experiments or while awaiting standardization. OrtValue in this case would contain an internal representation of the Opaque type. Opaque types are distinguished between each other by two strings 1) domain and 2) type name. The combination of the two must be unique, so the type representation is properly identified internally. The combination must be properly registered from within ORT at both compile/run time or by another API.

To construct the OrtValue pass domain and type names, also a pointer to a data container the type of which must be know to both ORT and the client program. That data container may or may not match the internal representation of the Opaque type. The sizeof(data_container) is passed for verification purposes.

\domain_name - domain name for the Opaque type, null terminated. \type_name - type name for the Opaque type, null terminated. \data_contianer - data to populate OrtValue \data_container_size - sizeof() of the data container. Must match the sizeof() of the expected data_container size internally.

struct OrtApi
OrtStatus* function(const(char)* domain_name, const(char)* type_name, const(void)* data_container, size_t data_container_size, OrtValue** out_) CreateOpaqueValue;

Meta