Skip to content

Commit 9e6a4ad

Browse files
committed
Update
1 parent f307ac2 commit 9e6a4ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

torchvision/datasets/food101.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(
5151

5252
self._labels = []
5353
self._image_files = []
54-
with open(self._meta_folder / f"{split}.json", "r") as f:
54+
with open(self._meta_folder / f"{split}.json") as f:
5555
metadata = json.loads(f.read())
5656

5757
self.classes = sorted(metadata.keys())

torchvision/models/optical_flow/raft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class BottleneckBlock(nn.Module):
7474
"""Slightly modified BottleNeck block (extra relu and biases)"""
7575

7676
def __init__(self, in_channels, out_channels, *, norm_layer, stride=1):
77-
super(BottleneckBlock, self).__init__()
77+
super().__init__()
7878

7979
# See note in ResidualBlock for the reason behind bias=True
8080
self.convnormrelu1 = ConvNormActivation(

0 commit comments

Comments
 (0)