infer

API definition

void infer(size_t n, const char* inputData, char* outputData);

Function

Performs inference based on the network models.

Input

size_t n: number of inputs for inference.

const char* inputData: feature vector for inference.

Output

char* outputData: feature vector result obtained after inference.

Return value

N/A

Restrictions

  • The value of n cannot be greater than 1e9.
  • The inputData and outputData must be non-null pointers, and their lengths must be dimIn x n and dimOut x n, respectively. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown.