Skip to content

Commit e130bbe

Browse files
YoungSeok Yoontensorflower-gardener
authored andcommitted
Increase the tolerance to remove flakiness
PiperOrigin-RevId: 548891449
1 parent aa2cb7c commit e130bbe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tensorflow_model_optimization/python/core/internal/tensor_encoding/stages/stages_impl_test.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,12 @@ def get_random_shape_input():
176176
self.assertEqual(test_data.x.shape[0], encoded_shape[0])
177177
self.assertEqual(8, encoded_shape[1])
178178

179-
@parameterized.parameters([(tf.float16, 1e-3, 1e-3),
180-
(tf.bfloat16, 1e-1, 1e-1),
181-
(tf.float32, 1e-6, 1e-6),
182-
(tf.float64, 1e-6, 1e-6)])
179+
@parameterized.parameters([
180+
(tf.float16, 1e-2, 1e-2),
181+
(tf.bfloat16, 1e-1, 1e-1),
182+
(tf.float32, 1e-6, 1e-6),
183+
(tf.float64, 1e-6, 1e-6),
184+
])
183185
def test_input_types(self, x_dtype, rtol, atol):
184186
test_data = self.run_one_to_many_encode_decode(
185187
self.default_encoding_stage(),

0 commit comments

Comments
 (0)