CreateLoraAdapterFromArray property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<Void> bytes, Size num_bytes, Pointer<OrtAllocator> allocator, Pointer<Pointer<OrtLoraAdapter> > out)> >
CreateLoraAdapterFromArray
getter/setter pair
\brief Create an OrtLoraAdapter
The function copies the bytes from the array and creates an OrtLoraAdapter instance.
\paramin bytes pointer to a valid Lora Adapter format buffer.
\paramin num_bytes length of bytes buffer.
\paramin allocator optional pointer to a device allocator. If specified
data is copied to the device at some point before Run() is invoked. If nullptr, data stays on CPU.
The data would still be copied to device if required by the model at inference time.
\paramout out A pointer to a newly created OrtLoraAdapter instance. Must be released with
OrtApi::ReleaseLoraAdapter.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.20.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<ffi.Void> bytes,
ffi.Size num_bytes,
ffi.Pointer<OrtAllocator> allocator,
ffi.Pointer<ffi.Pointer<OrtLoraAdapter>> out,
)
>
>
CreateLoraAdapterFromArray;