Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Guanheng Zhang committed Oct 21, 2020
1 parent 3a875ee commit 82a14a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/experimental/test_vocab.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ def test_vocab_basic(self):
self.assertEqual(v.get_itos(), expected_itos)
self.assertEqual(dict(v.get_stoi()), expected_stoi)

# we separate out these errors because Windows runs into seg faults when propagating
# exceptions from C++ using pybind11
@unittest.skipIf(platform.system() == "Windows", "Test is known to fail on Windows.")
def test_vocab_jit(self):
token_to_freq = {'hello': 4, 'world': 3, 'ᑌᑎIᑕOᗪᕮ_Tᕮ᙭T': 5, 'freq_too_low': 2}
sorted_by_freq_tuples = sorted(token_to_freq.items(), key=lambda x: x[1], reverse=True)
Expand Down

0 comments on commit 82a14a9

Please sign in to comment.