OP_LOGW
Description
Prints operator WARNING logs.
Prototype
OP_LOGW(opName, ...)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
opName |
Input |
Object to be printed. It can be an operator name, indicating that the operator information will be printed, or a function name, indicating that the information related to the function will be printed. The parameter type can be std::string or const char*. |
Return Value
None.
Constraints
None.
Example
The following sample code is for reference only. Do not copy and run it.
1 2 3 4 5 6 7 8 | bool BroadcastDim(int64_t& dim1, const int64_t dim2) { if ((dim1 != 1) && (dim2 != 1)) { OP_LOGW("BroadcastDim", "%ld and %ld cannot broadcast!", dim1, dim2); return false; } return true; } |
Parent topic: log