Skip to content

Commit

Permalink
Merge pull request #13 from nostalgebraist/fix-test-v0.0.11
Browse files Browse the repository at this point in the history
Correct shape in test_activations_dict_to_array input example
  • Loading branch information
jalammar authored Dec 26, 2020
2 parents 2ee44d3 + 90deb5c commit 8f96065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def test_select_output_token_sample(self):
assert result == torch.tensor(2)

def test_activations_dict_to_array(self):
dict = {0:[[np.zeros((3,4))]],
1:[[np.zeros((3,4))]]}
dict = {0:[np.zeros((3,4))],
1:[np.zeros((3,4))]}
activations = activations_dict_to_array(dict)
assert activations.shape == (2,4,3)

Expand Down

0 comments on commit 8f96065

Please sign in to comment.