ailiaSetInputBlobData method

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

Provides the specified blob with the input data.

Parameters:

  • net: A network instance pointer
  • src: The inference data is stored as numeric type data in the order of X, Y, Z, and W.
  • src_size: The number of bytes of the inference data
  • blob_idx: The index of the blob for input

Returns:

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

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