IFMR数据量化时,存在inf或NaN值,量化报错如下:
tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found. (0) Invalid argument: Error: Exit Infinite value before data quantization! : Tensor had NaN values [[{{node CheckNumerics_33}}]] [[detector/yolo-v3-tiny/Conv_2/act_quant/act_quant_IFMR/cond/StringFormat/Switch/_69]] (1) Invalid argument: Error: Exit Infinite value before data quantization! : Tensor had NaN values [[{{node CheckNumerics_33}}]] 0 successful operations. 0 derived errors ignored. During handling of the above exception, another exception occurred:
根据提示信息,跳过日志中的量化层,例如上述提示信息中的Conv_2层。