ailiaGetBlobData method

int ailiaGetBlobData(
  1. Pointer<AILIANetwork> net,
  2. Pointer<Void> dest,
  3. int dest_size,
  4. int blob_idx
)

~japanese @brief 推論時の内部データ(Blob)を取得します。 @param net ネットワークオブジェクトポインタ @param dest 推論結果の書き出し先バッファにX,Y,Z,Wの順でnumeric型で格納 @param dest_size 推論結果の書き出し先バッファのbyte数 @param blob_idx blobのインデックス (0~ ailiaGetBlobCount() -1) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details ailiaPredict() または ailiaUpdate() を一度も実行していない場合は \ref AILIA_STATUS_INVALID_STATE が返ります。

~english @brief Gets the internal data (blob) during inference. @param net A network instance pointer @param dest The result is stored in the inference result destination buffer as numeric type data in the order of X, Y, Z, and W. @param dest_size The number of bytes for the inference result destination buffer @param blob_idx The index of the blob (0 to ailiaGetBlobCount() -1) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details If ailiaPredict() or ailiaUpdate() is not run at all, the function returns \ref AILIA_STATUS_INVALID_STATE .

Implementation

int ailiaGetBlobData(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.Void> dest,
  int dest_size,
  int blob_idx,
) {
  return _ailiaGetBlobData(
    net,
    dest,
    dest_size,
    blob_idx,
  );
}