提交 431068c9 编写于 作者: C chuanqiw

Enhance test calibration script on accuracy assert

test=develop
上级 2e5831f0
...@@ -290,7 +290,7 @@ class TestCalibrationForResnet50(unittest.TestCase): ...@@ -290,7 +290,7 @@ class TestCalibrationForResnet50(unittest.TestCase):
self.model, self.infer_iterations) self.model, self.infer_iterations)
(int8_throughput, int8_latency, (int8_throughput, int8_latency,
int8_acc1) = self.run_program("calibration_out") int8_acc1) = self.run_program("calibration_out")
delta_value = np.abs(fp32_acc1 - int8_acc1) delta_value = fp32_acc1 - int8_acc1
self.assertLess(delta_value, 0.01) self.assertLess(delta_value, 0.01)
print( print(
"FP32 {0}: batch_size {1}, throughput {2} images/second, latency {3} second, accuracy {4}". "FP32 {0}: batch_size {1}, throughput {2} images/second, latency {3} second, accuracy {4}".
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册