Add mode to TarArchiveReader (#63332)
authorErjia Guan <erjia@fb.com>
Tue, 17 Aug 2021 14:26:08 +0000 (07:26 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 17 Aug 2021 14:28:37 +0000 (07:28 -0700)
commit2992d92b5acb1e5c712e5e9fded652f1312a81b1
tree37245aa589c81bc2bf7a1f07b4cf927850ad33f0
parentcae5ddc4274cac0fed0d14dd4bbd2c213a42659e
Add mode to TarArchiveReader (#63332)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63332

Add a corresponding PR from [torchdata](https://github.com/facebookexternal/torchdata/pull/101)

Test Plan: Imported from OSS

Reviewed By: astaff

Differential Revision: D30350151

Pulled By: ejguan

fbshipit-source-id: bced4a1ee1ce89d4e91e678327342e1c095dbb9e
torch/utils/data/datapipes/iter/readfilesfromtar.py