SessionGetMemoryInfoForInputs property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtSession> session, Pointer<Pointer<OrtMemoryInfo>> inputs_memory_info, Size num_inputs)>> SessionGetMemoryInfoForInputs
getter/setter pair

\brief Get the OrtMemoryInfo for each input of the session.

The memory info can be used to determine where the input tensors are required.

The session must be fully initialized before calling this function as the input locations are not known until this has occurred.

\paramin session The OrtSession instance. \paramout inputs_memory_info Pre-allocated array of size num_inputs that will be filled with the OrtMemoryInfo* value for each input. The order is the same as returned by SessionGetInputName. \paramin num_inputs The number of inputs in the session. Must match SessionGetInputCount.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.23

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtSession> session,
      ffi.Pointer<ffi.Pointer<OrtMemoryInfo>> inputs_memory_info,
      ffi.Size num_inputs,
    )
  >
>
SessionGetMemoryInfoForInputs;