Skip to content

Commit 93e6ad2

Browse files
committed
1 parent d1a5460 commit 93e6ad2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

beginner_source/examples_autograd/two_layer_net_autograd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
dtype = torch.float
2020
device = torch.device("cpu")
21-
# dtype = torch.device("cuda:0") # Uncomment this to run on GPU
21+
# device = torch.device("cuda:0") # Uncomment this to run on GPU
2222

2323
# N is batch size; D_in is input dimension;
2424
# H is hidden dimension; D_out is output dimension.

beginner_source/examples_autograd/two_layer_net_custom_function.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def backward(ctx, grad_output):
4848

4949
dtype = torch.float
5050
device = torch.device("cpu")
51-
# dtype = torch.device("cuda:0") # Uncomment this to run on GPU
51+
# device = torch.device("cuda:0") # Uncomment this to run on GPU
5252

5353
# N is batch size; D_in is input dimension;
5454
# H is hidden dimension; D_out is output dimension.

beginner_source/examples_tensor/two_layer_net_tensor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
dtype = torch.float
2525
device = torch.device("cpu")
26-
# dtype = torch.device("cuda:0") # Uncomment this to run on GPU
26+
# device = torch.device("cuda:0") # Uncomment this to run on GPU
2727

2828
# N is batch size; D_in is input dimension;
2929
# H is hidden dimension; D_out is output dimension.

0 commit comments

Comments
 (0)