ailiaGetInputShapeND method
- Pointer<
AILIANetwork> net, - Pointer<
UnsignedInt> shape, - int dim
~japanese @brief 推論時の入力データの形状を取得します。 @param net ネットワークオブジェクトポインタ @param shape 入力データの各次元の大きさの格納先配列(dim-1, dim-2, ... ,1, 0順で格納) @param dim shapeの次元 @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、形状の一部が未確定の場合 \ref AILIA_STATUS_UNSETTLED_SHAPE 、 それ以外のエラーの場合はエラーコードを返す。 @details 形状の一部が未確定の場合、該当する次元の値は0となり、それ以外の次元の値は有効な値が格納されます。 このAPIはailiaOpenWeighXXX呼び出し後より利用可能です。
~english @brief Gets the shape of the input data during inference. @param net A network instance pointer @param shape The storage location of the shape array. (It stores dim-1, dim-2, ... ,1, 0 order.) @param dim The size of shape @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS . And if shape is not seattled, it returns \ref AILIA_STATUS_UNSETTLED_SHAPE , or an error code otherwise. @details 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,
);
}