ailiaCopyBlobData method

int ailiaCopyBlobData(
  1. Pointer<AILIANetwork> dst_net,
  2. int dst_blob_idx,
  3. Pointer<AILIANetwork> src_net,
  4. int src_blob_idx
)

Perform copies between blobs that specified.

Parameters:

  • dst_net: The network object pointer that contains destination blob
  • dst_blob_idx: The index of destination blob
  • src_net: The network object pointer that contains source blob
  • src_blob_idx: The index of source blob

Returns:

In case of success, AILIA_STATUS_SUCCESS , and otherwise the coresponding error code.

Perform copy blobs between specified network. It accepts copy over different network. The src_blob_index must be specify blob index that inputs of src_net, and the dst_blob_index mut be specify blob index that outputs of dst_net. If specify index of other blob for dst_blob_idx , this function returns AILIA_STATUS_INVALID_ARGUMENT . This API can be call after call ailiaOpenWeighXXX().

Implementation

int ailiaCopyBlobData(
  ffi.Pointer<AILIANetwork> dst_net,
  int dst_blob_idx,
  ffi.Pointer<AILIANetwork> src_net,
  int src_blob_idx,
) {
  return _ailiaCopyBlobData(
    dst_net,
    dst_blob_idx,
    src_net,
    src_blob_idx,
  );
}