OP_LOGE

Description

Prints operator ERROR logs.

Prototype

OP_LOGE(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 const char* or std::string.

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_LOGE("BroadcastDim", "%ld and %ld cannot broadcast!", dim1, dim2);
        return false;
    }
    return true;
}