ailiaFindBlobNameByIndex method

int ailiaFindBlobNameByIndex(
  1. Pointer<AILIANetwork> net,
  2. Pointer<Char> buffer,
  3. int buffer_size,
  4. int blob_idx
)

~japanese @brief 推論時の内部データ(Blob)の名前をインデックスで探し取得します。 @param net ネットワークオブジェクトポインタ @param buffer Blob名の出力先バッファ @param buffer_size バッファのサイズ(終端null文字分を含む) @param blob_idx 検索するblobのインデックス @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details このAPIはailiaOpenStreamXXX呼び出し後より利用可能です。 なお、ailiaOpenStreamXXX呼び出し時は入出力Blobのみが検索可能です。中間Blobを検索する場合ailiaOpneWeightXXXを呼び出す必要があります。

~english @brief Searches by index for the name of the internal data (blob) during inference and returns it. @param net A network instance pointer @param buffer The output destination buffer for the blob name @param buffer_size The size of the buffer (including the null terminator) @param blob_idx The index of the blob to search for @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 ailiaOpenStreamXXX(). In addition, when call this API before call ailiaOpenWeightXXX, can only find inputs and outputs blobs. If you want find intermediate blobs, please call ailiaOpenWeightXXX before.

Implementation

int ailiaFindBlobNameByIndex(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.Char> buffer,
  int buffer_size,
  int blob_idx,
) {
  return _ailiaFindBlobNameByIndex(
    net,
    buffer,
    buffer_size,
    blob_idx,
  );
}