ailiaOpenWeightMem method
- Pointer<
AILIANetwork> net, - Pointer<
Void> buf, - int buf_size
Reads weights into a network instance. (Read from memory)
Parameters:
net: A network instance pointerbuf: A pointer to the data in the protobuf/onnx filebuf_size: The data size of the protobuf/onnx file
Returns:
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
This function reads weights into the network instance from memory.
Implementation
int ailiaOpenWeightMem(
ffi.Pointer<AILIANetwork> net,
ffi.Pointer<ffi.Void> buf,
int buf_size,
) {
return _ailiaOpenWeightMem(
net,
buf,
buf_size,
);
}