Skip to content

Commit c1b09cd

Browse files
iamazizsoumith
authored andcommitted
Fix typo in docstring example (pytorch#2562)
1 parent bc228b2 commit c1b09cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/nn/modules/linear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class Bilinear(Module):
8484
8585
>>> m = nn.Bilinear(20, 30, 40)
8686
>>> input1 = autograd.Variable(torch.randn(128, 20))
87-
>>> input1 = autograd.Variable(torch.randn(128, 30))
87+
>>> input2 = autograd.Variable(torch.randn(128, 30))
8888
>>> output = m(input1, input2)
8989
>>> print(output.size())
9090
"""

0 commit comments

Comments
 (0)