Skip to content

Commit f906179

Browse files
authored
Merge pull request #16407 from chuanqi129/test_calibration_enhance
Enhance test calibration script on accuracy assert
2 parents c917c13 + 431068c commit f906179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/fluid/contrib/tests/test_calibration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def test_calibration(self):
290290
self.model, self.infer_iterations)
291291
(int8_throughput, int8_latency,
292292
int8_acc1) = self.run_program("calibration_out")
293-
delta_value = np.abs(fp32_acc1 - int8_acc1)
293+
delta_value = fp32_acc1 - int8_acc1
294294
self.assertLess(delta_value, 0.01)
295295
print(
296296
"FP32 {0}: batch_size {1}, throughput {2} images/second, latency {3} second, accuracy {4}".

0 commit comments

Comments
 (0)