ShouldConvertDataLayoutForOp property
\brief Given an op with domain domain and type op_type, determine whether an associated node's data layout
should be converted to target_data_layout.
If the EP prefers a non-default data layout (see GetPreferredDataLayout()), this function will be called
during layout transformation with target_data_layout set to the EP's preferred data layout.
\note Implementation of this function is optional. If an EP prefers a non-default data layout, it may implement this to customize the specific op data layout preferences at a finer granularity.
\paramin this_ptr The OrtEp instance.
\paramin domain The op domain. An empty string means the ONNX domain.
\paramin op_type The op type.
\paramin target_data_layout The target data layout.
\paramout should_convert Whether the associated node's data layout should be converted to target_data_layout.
If greater than 0, convert.
If 0, don't convert.
Otherwise, if less than 0, leave the decision to ORT.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.23.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtEp> this_ptr,
ffi.Pointer<ffi.Char> domain,
ffi.Pointer<ffi.Char> op_type,
ffi.UnsignedInt target_data_layout,
ffi.Pointer<ffi.Int> should_convert,
)
>
>
ShouldConvertDataLayoutForOp;