ailiaFindBlobNameByIndex method

int ailiaFindBlobNameByIndex(
  1. Pointer<AILIANetwork> net,
  2. Pointer<Char> buffer,
  3. int buffer_size,
  4. int blob_idx
)

Searches by index for the name of the internal data (blob) during inference and returns it.

Parameters:

  • net: A network instance pointer
  • buffer: The output destination buffer for the blob name
  • buffer_size: The size of the buffer (including the null terminator)
  • blob_idx: The index of the blob to search for

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 ailiaFindBlobNameByIndex(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.Char> buffer,
  int buffer_size,
  int blob_idx,
) {
  return _ailiaFindBlobNameByIndex(
    net,
    buffer,
    buffer_size,
    blob_idx,
  );
}