ailiaGetBlobShape method

int ailiaGetBlobShape(
  1. Pointer<AILIANetwork> net,
  2. Pointer<AILIAShape> shape,
  3. int blob_idx,
  4. int version
)

~japanese @brief 推論時の内部データ(Blob)の形状を取得します。 @param net ネットワークオブジェクトポインタ @param shape データの形状情報の格納先 @param blob_idx blobのインデックス (0~ ailiaGetBlobCount() -1) @param version AILIA_SHAPE_VERSION @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、5次元以上の場合 \ref AILIA_STATUS_NDIMENSION_SHAPE 、 それ以外のエラーの場合はエラーコードを返す。 @details 形状が5次元以上の場合は ailiaGetBlobDim() 、 ailiaGetBlobShapeND() を利用してください。 このAPIはailiaOpenWeighXXX呼び出し後より利用可能です。

~english @brief Gets the shape of the internal data (blob) during inference. @param net A network instance pointer @param shape Storage location of the data shape information @param blob_idx The index of the blob (0 to ailiaGetBlobCount() -1) @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 ailiaGetBlobDim() and ailiaGetBlobShapeND(). This API can be call after call ailiaOpenWeighXXX().

Implementation

int ailiaGetBlobShape(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<AILIAShape> shape,
  int blob_idx,
  int version,
) {
  return _ailiaGetBlobShape(
    net,
    shape,
    blob_idx,
    version,
  );
}