ailiaOpenWeightMem method

int ailiaOpenWeightMem(
  1. Pointer<AILIANetwork> net,
  2. Pointer<Void> buf,
  3. int buf_size
)

Reads weights into a network instance. (Read from memory)

Parameters:

  • net: A network instance pointer
  • buf: A pointer to the data in the protobuf/onnx file
  • buf_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,
  );
}