SetExternalLogFunc
Function
Set the function for printing external logs.
Prototype
int SetExternalLogFunc(ExternalLog logFunc);
Do not print sensitive and private data in logs to avoid outputting the tensors used for calculation and the values of keys and values in the Find table.
Parameters
Parameter |
Input/Output |
Description |
Constraint |
|---|---|---|---|
logFunc |
Input |
A function pointer parameter, whose return value is void, input parameter is of the int type, and log is of the char * type. |
logFunc is not empty. The user inputs logFunc and ensures its functionality and security. |
Parent topic: Operator APIs