ailiaGetOutputShape method

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

Gets the shape of the output data during inference.

Parameters:

  • net: A network instance pointer
  • shape: Shape information of the output data
  • 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 ailiaGetOutputDim() () and ailiaGetOutputShapeND(). This API can be call after call ailiaOpenWeighXXX().

Implementation

int ailiaGetOutputShape(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<AILIAShape> shape,
  int version,
) {
  return _ailiaGetOutputShape(
    net,
    shape,
    version,
  );
}