Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 4908d3c

Browse files
authored
Fixing typing issues DataSet -> DataType (#1486)
1 parent 81f4f8c commit 4908d3c

File tree

1 file changed

+2
-2
lines changed
  • torchtext/experimental/datasets

1 file changed

+2
-2
lines changed

torchtext/experimental/datasets/sst2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Facebook, Inc. and its affiliates.
22
import os
33

4-
from torch.utils.data.dataset import IterableDataset
4+
from torch.utils.data import IterDataPipe
55
from torchtext._internal.module_utils import is_module_available
66
from torchtext.data.datasets_utils import (
77
_add_docstring_header,
@@ -56,7 +56,7 @@ def SST2(root, split, validate_hash=True):
5656
return SST2Dataset(root, split, validate_hash=validate_hash)
5757

5858

59-
class SST2Dataset(IterableDataset):
59+
class SST2Dataset(IterDataPipe):
6060
"""The SST2 dataset uses torchdata datapipes end-2-end.
6161
To avoid download at every epoch, we cache the data on-disk
6262
We do sanity check on dowloaded and extracted data

0 commit comments

Comments
 (0)