Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e7dbfc

Browse files
authored
Replace the out of date super init method (#2499)
1 parent d06d2f1 commit 4e7dbfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

beginner_source/basics/optimization_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),

0 commit comments

Comments
 (0)