ailiaSetInputBlobData method

int ailiaSetInputBlobData(
  1. Pointer<AILIANetwork> net,
  2. Pointer<Void> src,
  3. int src_size,
  4. int blob_idx
)

~japanese @brief 指定したBlobに入力データを与えます。 @param net ネットワークオブジェクトポインタ @param src 推論データ X,Y,Z,Wの順でnumeric型で格納 @param src_size 推論データのbyte数 @param blob_idx 入力するblobのインデックス @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details 複数入力があるネットワークなどで入力を指定する場合に用います。 blob_idxで入力レイヤーのblob以外のものを指定した場合、 \ref AILIA_STATUS_INVALID_ARGUMENT が返ります。 このAPIはailiaOpenWeighXXX呼び出し後より利用可能です。

~english @brief Provides the specified blob with the input data. @param net A network instance pointer @param src The inference data is stored as numeric type data in the order of X, Y, Z, and W. @param src_size The number of bytes of the inference data @param blob_idx The index of the blob for input @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details This function is used to specify the input on networks with multiple inputs. If something other than a blob in the input layer is specified for blob_idx, the function returns \ref AILIA_STATUS_INVALID_ARGUMENT . This API can be call after call ailiaOpenWeighXXX().

Implementation

int ailiaSetInputBlobData(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.Void> src,
  int src_size,
  int blob_idx,
) {
  return _ailiaSetInputBlobData(
    net,
    src,
    src_size,
    blob_idx,
  );
}