Skip to content

Commit 322712c

Browse files
committed
stateful dl smoke test
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent de5791b commit 322712c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/smoke_test/smoke_test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ def s3_test():
1616
from torchdata._torchdata import S3Handler
1717

1818

19+
def stateful_dataloader_test():
20+
from torchdata.stateful_dataloader import StatefulDataLoader
21+
22+
1923
if __name__ == "__main__":
2024
r"""
2125
TorchData Smoke Test
@@ -26,3 +30,7 @@ def s3_test():
2630
options = parser.parse_args()
2731
if options.s3:
2832
s3_test()
33+
34+
if torchdata.__version__ != "0.8.0":
35+
raise Exception("TorchData version is not 0.8.0")
36+
stateful_dataloader_test()

0 commit comments

Comments
 (0)