ailiaGetInputShape method
- Pointer<
AILIANetwork> net, - Pointer<
AILIAShape> shape, - int version
Gets the shape of the input data during inference.
Parameters:
net: A network instance pointershape: Shape information for the input dataversion: 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,
);
}