ailiaGetBlobNameLengthByIndex method

int ailiaGetBlobNameLengthByIndex(
  1. Pointer<AILIANetwork> net,
  2. int blob_idx,
  3. Pointer<UnsignedInt> buffer_size
)

Gets the size of the buffer needed for output of the name of the internal data (blob).

Parameters:

  • net: A network instance pointer
  • blob_idx: The index of the blob (0 to ailiaGetBlobCount() -1)
  • buffer_size: The size of the buffer needed for output of the blob name (including the null terminator)

Returns:

If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

This API can be call after call ailiaOpenStreamXXX(). In addition, when call this API before call ailiaOpenWeightXXX, can only find inputs and outputs blobs. If you want find intermediate blobs, please call ailiaOpenWeightXXX before.

Implementation

int ailiaGetBlobNameLengthByIndex(
  ffi.Pointer<AILIANetwork> net,
  int blob_idx,
  ffi.Pointer<ffi.UnsignedInt> buffer_size,
) {
  return _ailiaGetBlobNameLengthByIndex(
    net,
    blob_idx,
    buffer_size,
  );
}