ailiaPredict method

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

Performs the inferences and provides the inference result.

Parameters:

  • net: A network instance pointer
  • 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.
  • dest_size: The number of bytes for the destination buffer for the inference result
  • 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.
  • src_size: The number of bytes of the inference data

Returns:

If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

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,
  );
}