Run property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtSession> session, Pointer<OrtRunOptions> run_options, Pointer<Pointer<Char>> input_names, Pointer<Pointer<OrtValue>> inputs, Size input_len, Pointer<Pointer<Char>> output_names, Size output_names_len, Pointer<Pointer<OrtValue>> outputs)>> Run
getter/setter pair

\brief Run the model in an ::OrtSession

Will not return until the model run has completed. Multiple threads might be used to run the model based on the options in the ::OrtSession and settings used when creating the ::OrtEnv

\paramin session \paramin run_options If nullptr, will use a default ::OrtRunOptions \paramin input_names Array of null terminated UTF8 encoded strings of the input names \paramin inputs Array of ::OrtValue%s of the input values \paramin input_len Number of elements in the input_names and inputs arrays \paramin output_names Array of null terminated UTF8 encoded strings of the output names \paramin output_names_len Number of elements in the output_names and outputs array \paramout outputs Array of ::OrtValue%s that the outputs are stored in. This can also be an array of nullptr values, in this case ::OrtValue objects will be allocated and pointers to them will be set into the outputs array.

\snippet{doc} snippets.dox OrtStatus Return Value

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtSession> session,
      ffi.Pointer<OrtRunOptions> run_options,
      ffi.Pointer<ffi.Pointer<ffi.Char>> input_names,
      ffi.Pointer<ffi.Pointer<OrtValue>> inputs,
      ffi.Size input_len,
      ffi.Pointer<ffi.Pointer<ffi.Char>> output_names,
      ffi.Size output_names_len,
      ffi.Pointer<ffi.Pointer<OrtValue>> outputs,
    )
  >
>
Run;