ailiaGetBlobDataType method

int ailiaGetBlobDataType(
  1. Pointer<AILIANetwork> net,
  2. Pointer<Int32> type,
  3. int blob_idx
)

~japanese @brief 推論時の内部データ(Blob)の型を取得します。 @param net ネットワークオブジェクトポインタ @param type データ型の書き出し先バッファ。値は AILIA_DATATYPE_XXX で定義されています。 @param blob_idx blobのインデックス (0~ ailiaGetBlobCount() -1) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details このAPIはailiaOpenWeighXXX呼び出し後より利用可能です。

~english @brief Get the type of Blob. @param net A network instance pointer @param blob_idx The index of the blob (0 to ailiaGetBlobCount() -1) @param type The type of blob is stored to it. Values are defined as AILIA_DATATYPE_XXX. @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details This API can be call after call ailiaOpenWeighXXX().

Implementation

int ailiaGetBlobDataType(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.Int32> type,
  int blob_idx,
) {
  return _ailiaGetBlobDataType(
    net,
    type,
    blob_idx,
  );
}