ailiaOpenWeightFileA method

int ailiaOpenWeightFileA(
  1. Pointer<AILIANetwork> net,
  2. Pointer<Char> path
)

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

Parameters:

  • net: A network instance pointer
  • path: The path name to the protobuf/onnx file (MBSC or UTF16)

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 a file.

Implementation

int ailiaOpenWeightFileA(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.Char> path,
) {
  return _ailiaOpenWeightFileA(
    net,
    path,
  );
}