Skip to content

Commit

Permalink
Update test tolerances.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 561744940
  • Loading branch information
ursk authored and tensorflower-gardener committed Aug 31, 2023
1 parent 53d1142 commit 42a64ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tensorflow_probability/python/internal/backend/numpy/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ py_test(
"--test_mode=xla",
# TODO(b/168718272): reduce_*([nan, nan], axis=0) (GPU)
# histogram_fixed_width_bins fails with f32([0.]), [0.0, 0.0], 2
"--xla_disabled=math.cumulative_logsumexp,math.reduce_min,math.reduce_max,histogram_fixed_width_bins",
("--xla_disabled=math.cumulative_logsumexp,math.reduce_min,math.reduce_max,histogram_fixed_width_bins," +
# TODO(b/298426124): TF floomod GPU bug
"math.floormod"),
],
main = "numpy_test.py",
shard_count = 11,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1377,10 +1377,10 @@ def _not_implemented(*args, **kwargs):
[n_same_shape(n=2, elements=[floats(), non_zero_floats()])]),
TestCase('math.xlogy',
[n_same_shape(n=2, elements=[floats(), positive_floats()])],
atol=1e-4),
atol=1e-4, rtol=1e-3),
TestCase('math.xlog1py',
[n_same_shape(n=2, elements=[floats(), positive_floats()])],
atol=1e-4),
atol=1e-4, rtol=1e-3),
TestCase('nn.conv2d', [conv2d_params()], disabled=NUMPY_MODE),
TestCase(
'nn.sparse_softmax_cross_entropy_with_logits', [sparse_xent_params()],
Expand Down

0 comments on commit 42a64ba

Please sign in to comment.