Skip to content

Commit

Permalink
Merge pull request #16407 from chuanqi129/test_calibration_enhance
Browse files Browse the repository at this point in the history
Enhance test calibration script on accuracy assert
  • Loading branch information
luotao1 committed Mar 23, 2019
2 parents c917c13 + 431068c commit f906179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/fluid/contrib/tests/test_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def test_calibration(self):
self.model, self.infer_iterations)
(int8_throughput, int8_latency,
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)
print(
"FP32 {0}: batch_size {1}, throughput {2} images/second, latency {3} second, accuracy {4}".
Expand Down

0 comments on commit f906179

Please sign in to comment.