Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/source/notes/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ numerical approximations using small finite differences::
# gradcheck takes a tuple of tensors as input, check if your gradient
# evaluated with these tensors are close enough to numerical
# approximations and returns True if they all verify this condition.
input = (Variable(torch.randn(20,20).double(), requires_grad=True), Variable(torch.randn(30,20).double(), requires_grad=True),)
test = gradcheck(Linear.apply, input, eps=1e-6, atol=1e-4)
input = (torch.randn(20,20,dtype=torch.double,requires_grad=True), torch.randn(30,20,dtype=torch.double,requires_grad=True))
test = gradcheck(linear, input, eps=1e-6, atol=1e-4)
print(test)

Extending :mod:`torch.nn`
Expand Down
2 changes: 1 addition & 1 deletion docs/source/notes/multiprocessing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@ example below as well::
p.start()
processes.append(p)
for p in processes:
p.join()
p.join()

.. __: https://github.com/pytorch/examples/tree/master/mnist_hogwild