Skip to content

Commit

Permalink
up the priority of numpy array comparisons in self.assertEqual (#59067)
Browse files Browse the repository at this point in the history
Summary:
Fixes pytorch/pytorch#58988.

Pull Request resolved: pytorch/pytorch#59067

Reviewed By: jbschlosser

Differential Revision: D28986642

Pulled By: heitorschueroff

fbshipit-source-id: ca46f32d8380c510e816d6438a2d1969c2bdd10b
  • Loading branch information
pmeier authored and facebook-github-bot committed Jun 21, 2021
1 parent 625c11d commit a68f932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/legacy/test_vocab.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_vocab_set_vectors(self):
expected_vectors = np.array([[0.0, 0.0], [0.0, 0.0], [0.0, 0.0],
[0.0, 0.0], [0.1, 0.2], [0.5, 0.6],
[0.3, 0.4]])
self.assertEqual(v.vectors, expected_vectors)
self.assertEqual(v.vectors, expected_vectors, exact_dtype=False)

def test_errors(self):
c = Counter({'hello': 4, 'world': 3, 'ᑌᑎIᑕOᗪᕮ_Tᕮ᙭T': 5, 'freq_too_low': 2})
Expand Down

0 comments on commit a68f932

Please sign in to comment.