ValidateCompiledModelCompatibilityInfo property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtEpFactory> this_ptr, Pointer<Pointer<OrtHardwareDevice>> devices, Size num_devices, Pointer<Char> compatibility_info, Pointer<UnsignedInt> model_compatibility)>> ValidateCompiledModelCompatibilityInfo
getter/setter pair

\brief Validate the compatibility of a compiled model with the execution provider factory for one or more devices.

Given a compatibility info string produced during model compilation, the EP factory should determine whether the compiled model is compatible with the EP factory when targeting the provided hardware devices. All devices provided must belong to the same execution provider instance that this factory creates.

The EP factory implementation should consider the set of devices (e.g., multi-adapter or multi-GPU scenarios) when evaluating compatibility and set model_compatibility accordingly.

\paramin this_ptr The OrtEpFactory instance. \paramin devices Array of OrtHardwareDevice pointers that the EP would run on. All must map to this EP. \paramin num_devices Number of entries in devices. \paramin compatibility_info The compatibility information string produced when the model was compiled. \paramout model_compatibility OrtCompiledModelCompatibility value describing the compatibility of the model with the EP.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.23.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtEpFactory> this_ptr,
      ffi.Pointer<ffi.Pointer<OrtHardwareDevice>> devices,
      ffi.Size num_devices,
      ffi.Pointer<ffi.Char> compatibility_info,
      ffi.Pointer<ffi.UnsignedInt> model_compatibility,
    )
  >
>
ValidateCompiledModelCompatibilityInfo;