Skip to content
This repository was archived by the owner on Oct 27, 2023. It is now read-only.

Commit d8787d3

Browse files
ikamenshholly1238
andauthored
Use python3 super syntax (pytorch#976)
minor improvement - only python3 is supported by Torch 1.5, so we can use newer, shorter syntax. Co-authored-by: holly1238 <[email protected]>
1 parent 01e21d7 commit d8787d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/blitz/cifar10_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def imshow(img):
125125

126126
class Net(nn.Module):
127127
def __init__(self):
128-
super(Net, self).__init__()
128+
super().__init__()
129129
self.conv1 = nn.Conv2d(3, 6, 5)
130130
self.pool = nn.MaxPool2d(2, 2)
131131
self.conv2 = nn.Conv2d(6, 16, 5)

0 commit comments

Comments
 (0)