OP_LOGE_FOR_INVALID_CONFIGS_WITH_REASON
Description
Records and reports the error that multiple configuration item values are invalid (with causes). If the values of multiple configuration items in the configuration file are invalid, an error log is generated and the error code EZ0034 is reported.
Prototype
OP_LOGE_FOR_INVALID_CONFIGS_WITH_REASON(opName, configFile, items, values, reason)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
opName |
Input |
Operator name or aclnn API name. The type can be const char* or std::string. |
configFile |
Input |
Configuration file path. The type can be const char* or std::string. |
items |
Input |
List of configuration item names. The type can be const char* or std::string. |
values |
Input |
Actual value list. The type can be const char* or std::string. |
reason |
Input |
Error cause. The 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 | OP_LOGE_FOR_INVALID_CONFIGS_WITH_REASON("MyOp", "config.ini", "block_size, ub_size", "128, 64", "value exceeds limit"); |