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

tighten test_sampled_equals_unsampled_when_biased_against_non_sampled_positions bound #5549

Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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