Skip to content

Commit

Permalink
Fix too-tight tolerance on CARFAC golden data test.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 657867039
  • Loading branch information
CARFAC Team authored and copybara-github committed Jul 31, 2024
1 parent f2f3984 commit 7c6bc1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tf/carfac_golden_data_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def testEagerModeAgainstGoldenData(self):
np.savez(output_file, data=output[:, :, :, :, 0])
print(f'Golden data test saved produced output in {output_file}')
golden = np.load(pathlib.Path(__file__).parent / 'golden_data.npz')['data']
np.testing.assert_allclose(golden, output[:, :, :, :, 0])
np.testing.assert_allclose(golden, output[:, :, :, :, 0], atol=1e-6)


if __name__ == '__main__':
Expand Down

0 comments on commit 7c6bc1d

Please sign in to comment.