Skip to content

Commit 257a24b

Browse files
iindyktfx-copybara
authored andcommitted
Reduce equality comparison precision in tests.
PiperOrigin-RevId: 687320290
1 parent af90f98 commit 257a24b

File tree

2 files changed

+1
-65
lines changed

2 files changed

+1
-65
lines changed

.github/workflows/wheels.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

tensorflow_transform/test_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def _assertValuesCloseOrEqual(self, a_value, b_value, msg=None):
302302
self.assertAllEqual(a_value, b_value, msg=msg)
303303
else:
304304
# TODO(varshaan): Change atol only for tests for which 1e-6 is too strict.
305-
self.assertAllClose(a_value, b_value, atol=1e-5, msg=msg)
305+
self.assertAllClose(a_value, b_value, atol=1e-4, msg=msg)
306306

307307
def AssertVocabularyContents(self, vocab_file_path, file_contents):
308308
if vocab_file_path.endswith('.tfrecord.gz'):

0 commit comments

Comments
 (0)