Skip to content

Commit 877e39b

Browse files
zoyahavtfx-copybara
authored andcommitted
Relaxing census v2 prediction test to atol=0.01
PiperOrigin-RevId: 511870674
1 parent 96f96e6 commit 877e39b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/census_example_v2_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def testCensusExampleAccuracy(self, read_raw_data_for_training):
176176
prediction = model.signatures['serving_default'](
177177
tf.constant([example.SerializeToString()], tf.string))
178178
self.assertAllEqual([['0', '1']], prediction['classes'])
179-
self.assertAllClose([[0, 1]], prediction['scores'], atol=0.001)
179+
self.assertAllClose([[0, 1]], prediction['scores'], atol=0.01)
180180

181181
# This is required in order to support the classify API for this Keras
182182
# model.

0 commit comments

Comments
 (0)