Skip to content

Commit b941bc9

Browse files
author
Svetlana Karslioglu
authored
Merge branch 'main' into 2.0-RC-TEST
2 parents fd8ea4b + ba283dd commit b941bc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

beginner_source/basics/buildmodel_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
class NeuralNetwork(nn.Module):
5151
def __init__(self):
52-
super(NeuralNetwork, self).__init__()
52+
super().__init__()
5353
self.flatten = nn.Flatten()
5454
self.linear_relu_stack = nn.Sequential(
5555
nn.Linear(28*28, 512),

intermediate_source/forward_ad_usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def fn(x, y):
6363
dual_input_alt = fwAD.make_dual(primal, tangent.T)
6464
assert fwAD.unpack_dual(dual_input_alt).tangent is not tangent
6565

66-
# Tensors that do not not have an associated tangent are automatically
66+
# Tensors that do not have an associated tangent are automatically
6767
# considered to have a zero-filled tangent of the same shape.
6868
plain_tensor = torch.randn(10, 10)
6969
dual_output = fn(dual_input, plain_tensor)

0 commit comments

Comments
 (0)