ailiaGetBlobShapeND method

int ailiaGetBlobShapeND(
  1. Pointer<AILIANetwork> net,
  2. Pointer<UnsignedInt> shape,
  3. int dim,
  4. int blob_idx
)

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

Parameters:

  • net: A network instance pointer
  • shape: The storage location of the shape array. (It stores dim-1, dim-2, ... ,1, 0 order.)
  • dim: The size of shape
  • blob_idx: The index of the blob (0 to ailiaGetBlobCount() -1)

Returns:

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

This API can be call after call ailiaOpenWeighXXX().

Implementation

int ailiaGetBlobShapeND(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.UnsignedInt> shape,
  int dim,
  int blob_idx,
) {
  return _ailiaGetBlobShapeND(
    net,
    shape,
    dim,
    blob_idx,
  );
}