RunOptionsAddActiveLoraAdapter property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtRunOptions> options, Pointer<OrtLoraAdapter> adapter)> >
RunOptionsAddActiveLoraAdapter
getter/setter pair
\brief Add the Lora Adapter to the list of active adapters.
The function adds the Lora Adapter to the list of active adapters. The Lora Adapter must be created with OrtApi::CreateLoraAdapter or FromArray. The Lora Adapter will be used by the session to run the model. The instance of the OrtRunOptions can then be used to customize the Run() calls. More than one OrtLoraAdapter can be active at the same time. Lora Parameters that belong to different Lora adapters that will be active at the same time must not overlap. This setting does not affect RunWithBinding.
\paramin options OrtRunOptions instance
\paramin adapter OrtLoraAdapter instance
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.20.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtRunOptions> options,
ffi.Pointer<OrtLoraAdapter> adapter,
)
>
>
RunOptionsAddActiveLoraAdapter;