ailiaGetOutputShape method
- Pointer<
AILIANetwork> net, - Pointer<
AILIAShape> shape, - int version
~japanese @brief 推論時の出力データの形状を取得します。 @param net ネットワークオブジェクトポインタ @param shape 出力データの形状情報 @param version AILIA_SHAPE_VERSION @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、5次元以上の場合 \ref AILIA_STATUS_NDIMENSION_SHAPE 、 それ以外のエラーの場合エラーコードを返す。 形状が5次元以上の場合は ailiaGetOutputDim() 、 ailiaGetOutputShapeND() を利用してください。 このAPIはailiaOpenWeighXXX呼び出し後より利用可能です。
~english @brief Gets the shape of the output data during inference. @param net A network instance pointer @param shape Shape information of the output data @param version AILIA_SHAPE_VERSION @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS . And if shape has 5 or more dimension, it returns \ref AILIA_STATUS_NDIMENSION_SHAPE , or an error code otherwise. @details 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,
);
}