Set environment variables:
Set the log print level. There are logs printed to the screen and logs saved in the amct_log/amct_caffe.log file. The environment variables are optional. If they are not set, the default log level INFO is used.
- Variables
The log level is set by the following variables:
- AMCT_LOG_FILE_LEVEL: specifies the level of messages in the amct_caffe.log file and the level of messages in the log file generated of the corresponding quantizable layer when the fake-quantized model is generated.
- Sets the level of information displayed on the screen.
Table 1 lists the valid values and their meanings.Table 1 Variable Value Range Log Level
Meaning
Details
DEBUG
DEBUG: DEBUG, INFO, WARNING, and ERROR logs.
Detailed process messages, including the quantization layer and corresponding processing phase (fusion, parameter quantization, or activation quantization)
INFO
INFO: INFO, WARNING, and ERROR logs. Defaults to INFO.
Brief quantization processing messages, including the quantization phase.
WARNING
WARNING: WARNING and ERROR logs.
Warning messages during quantization.
ERROR
ERROR: ERROR logs.
Error messages during quantization.
Log levels are case insensitive. For instance, Info, info, and INFO are all valid values.
- Command Example