ailiaPredict method

int ailiaPredict(
  1. Pointer<AILIANetwork> net,
  2. Pointer<Void> dest,
  3. int dest_size,
  4. Pointer<Void> src,
  5. int src_size
)

~japanese @brief 推論を行い推論結果を取得します。 @param net ネットワークオブジェクトポインタ @param dest 推論結果の書き出し先バッファにX,Y,Z,Wの順でnumeric型で格納 サイズはネットファイルのoutputSizeとなる @param dest_size 推論結果の書き出し先バッファのbyte数 @param src 推論データ X,Y,Z,Wの順でnumeric型で格納 サイズはネットファイルのinputSizeとなる @param src_size 推論データのbyte数 @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details このAPIはailiaOpenWeighXXX呼び出し後より利用可能です。

~english @brief Performs the inferences and provides the inference result. @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. The buffer has the same size as the network file outputSize. @param dest_size The number of bytes for the destination buffer for the inference result @param src The input is stored as numeric type data in the order of the inference data X, Y, Z, and W. The input has the same size as the network file inputSize. @param src_size The number of bytes of the inference data @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 ailiaPredict(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.Void> dest,
  int dest_size,
  ffi.Pointer<ffi.Void> src,
  int src_size,
) {
  return _ailiaPredict(
    net,
    dest,
    dest_size,
    src,
    src_size,
  );
}