ailiaGetOutputShapeND method

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

Gets the shape of the output 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 , or an error code otherwise.

This API can be call after call ailiaOpenWeighXXX().

Implementation

int ailiaGetOutputShapeND(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.UnsignedInt> shape,
  int dim,
) {
  return _ailiaGetOutputShapeND(
    net,
    shape,
    dim,
  );
}