Skip to content

Commit

Permalink
Updated dataset in torchvision tutorial (#1585)
Browse files Browse the repository at this point in the history
Fixes issue #759

Co-authored-by: Brian Johnson <brianjo@fb.com>
  • Loading branch information
holly1238 and brianjo authored Jun 17, 2021
1 parent 243acd7 commit 03db2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intermediate_source/torchvision_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Let’s write a ``torch.utils.data.Dataset`` class for this dataset.
from PIL import Image
class PennFudanDataset(object):
class PennFudanDataset(torch.utils.data.Dataset):
def __init__(self, root, transforms):
self.root = root
self.transforms = transforms
Expand Down

0 comments on commit 03db2af

Please sign in to comment.