Mirrored strategy and default strategy can result in different layouts in XLA that can result in different accumulation orders for reduction operations. As a result, relax the precision of the keras correctness tests.
PiperOrigin-RevId: 327438391 Change-Id: I1b8a8e119cff89bce991466e8289568e96cc6d31
This commit is contained in:
parent
4a896124e3
commit
e5f12a0ff5
@ -308,7 +308,7 @@ def compare_results(results_with_ds,
|
|||||||
default_tolerance = 1e-3
|
default_tolerance = 1e-3
|
||||||
relaxed_tolerance = 1e-3
|
relaxed_tolerance = 1e-3
|
||||||
else:
|
else:
|
||||||
default_tolerance = 1e-5
|
default_tolerance = 4e-5
|
||||||
relaxed_tolerance = 1e-4
|
relaxed_tolerance = 1e-4
|
||||||
|
|
||||||
def _get_compare_result_tolerance(key):
|
def _get_compare_result_tolerance(key):
|
||||||
|
Loading…
Reference in New Issue
Block a user