Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
tighten test_sampled_equals_unsampled_when_biased_against_non_sampled…
Browse files Browse the repository at this point in the history
…_positions bound (#5549)

Co-authored-by: Akshita Bhagia <akshita23bhagia@gmail.com>
  • Loading branch information
austereantelope and AkshitaB authored Feb 10, 2022
1 parent e463084 commit 3c2299a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/modules/sampled_softmax_loss_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ def fake_choice(num_words: int, num_samples: int) -> Tuple[np.ndarray, int]:
# Should be close

pct_error = (sampled_loss - full_loss) / full_loss
assert abs(pct_error) < 0.001
assert abs(pct_error) < 0.0003

0 comments on commit 3c2299a

Please sign in to comment.