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