Skip to content

Commit

Permalink
Update test/test_modules.py
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Moens <vincentmoens@gmail.com>
  • Loading branch information
albertbou92 and vmoens authored Dec 1, 2023
1 parent 5331647 commit 3dd0a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,8 +1297,8 @@ def test_python_lstm(device, bias, dropout, batch_first, num_layers):
else:
input = torch.randn(T, B, 10, device=device)

h0 = torch.randn(num_layers, 5, 20).to(device)
c0 = torch.randn(num_layers, 5, 20).to(device)
h0 = torch.randn(num_layers, 5, 20, device=device)
c0 = torch.randn(num_layers, 5, 20, device=device)

# Test without hidden states
with torch.no_grad():
Expand Down

0 comments on commit 3dd0a52

Please sign in to comment.