ailiaGetInputShapeND method

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

Gets the shape of the input data 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

Returns:

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

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 ailiaGetInputShapeND(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.UnsignedInt> shape,
  int dim,
) {
  return _ailiaGetInputShapeND(
    net,
    shape,
    dim,
  );
}