ailiaGetBlobShape method

int ailiaGetBlobShape(
  1. Pointer<AILIANetwork> net,
  2. Pointer<AILIAShape> shape,
  3. int blob_idx,
  4. int version
)

Gets the shape of the internal data (blob) during inference.

Parameters:

  • net: A network instance pointer
  • shape: Storage location of the data shape information
  • blob_idx: The index of the blob (0 to ailiaGetBlobCount() -1)
  • version: AILIA_SHAPE_VERSION

Returns:

If this function is successful, it returns AILIA_STATUS_SUCCESS . And if shape has 5 or more dimension, it returns AILIA_STATUS_NDIMENSION_SHAPE , or an error code otherwise.

When dimension of shape is 5 or more, please use ailiaGetBlobDim() and ailiaGetBlobShapeND(). This API can be call after call ailiaOpenWeighXXX().

Implementation

int ailiaGetBlobShape(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<AILIAShape> shape,
  int blob_idx,
  int version,
) {
  return _ailiaGetBlobShape(
    net,
    shape,
    blob_idx,
    version,
  );
}