ailiaGetBlobIndexByInputIndex method

int ailiaGetBlobIndexByInputIndex(
  1. Pointer<AILIANetwork> net,
  2. Pointer<UnsignedInt> blob_idx,
  3. int input_blob_idx
)

Get the blob index of the input data.

Parameters:

  • net: A network instance pointer
  • blob_idx: index of the blob (between 0 and ailiaGetBlobCount() -1)
  • input_blob_idx: index among the input blobs (between 0 and ailiaGetInputBlobCount() -1)

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, we guarantee that input_blob_idx and blob_idx which enumerate when call ailiaOpenStreamXXX are not changed when call ailiaOpneWeightXXX.

Implementation

int ailiaGetBlobIndexByInputIndex(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.UnsignedInt> blob_idx,
  int input_blob_idx,
) {
  return _ailiaGetBlobIndexByInputIndex(
    net,
    blob_idx,
    input_blob_idx,
  );
}