Skip to content

Commit 997b3b7

Browse files
author
Justin Johnson
committed
missed a Variable reference
1 parent 88612ad commit 997b3b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ N, D_in, H, D_out = 64, 1000, 100, 10
291291
x = torch.randn(N, D_in, device=device)
292292
y = torch.randn(N, D_out, device=device)
293293

294-
# Create random Tensors for weights, and wrap them in Variables.
294+
# Create random Tensors for weights.
295295
w1 = torch.randn(D_in, H, device=device, requires_grad=True)
296296
w2 = torch.randn(H, D_out, device=device, requires_grad=True)
297297

autograd/two_layer_net_custom_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def backward(ctx, grad_output):
5252
x = torch.randn(N, D_in, device=device)
5353
y = torch.randn(N, D_out, device=device)
5454

55-
# Create random Tensors for weights, and wrap them in Variables.
55+
# Create random Tensors for weights.
5656
w1 = torch.randn(D_in, H, device=device, requires_grad=True)
5757
w2 = torch.randn(H, D_out, device=device, requires_grad=True)
5858

0 commit comments

Comments
 (0)