ailiaGetInputShape method

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

Gets the shape of the input data during inference.

Parameters:

  • net: A network instance pointer
  • shape: Shape information for the input data
  • version: AILIA_SHAPE_VERSION

Returns:

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

When dimension of shape is 5 or more, please use ailiaGetInputDim() and ailiaGetInputShapeND(). When shape is not settled, this function stores 0 at unsettled dimension and otherwise stores valid value. This API can be call after call ailiaOpenWeighXXX().

Implementation

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