GetPreferredDataLayout property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtEp> this_ptr, Pointer<UnsignedInt> preferred_data_layout)>> GetPreferredDataLayout
getter/setter pair

\brief Get the EP's preferred data layout.

\note Implementation of this function is optional. If not implemented, ORT will assume that this EP prefers the data layout OrtEpDataLayout::NCHW.

\paramin this_ptr The OrtEp instance. \paramout preferred_data_layout The EP's preferred data layout.

\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.UnsignedInt> preferred_data_layout,
    )
  >
>
GetPreferredDataLayout;