[DataPipe] implementing __len__ for fork (no valid length for demux) (#64215)
authorKevin Tse <ktse@fb.com>
Tue, 31 Aug 2021 15:07:23 +0000 (08:07 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 31 Aug 2021 15:32:31 +0000 (08:32 -0700)
commit0ef8760bf6b3e8098ef42df60f1e451234151f32
treea1c220efcf3e4e2599f5320e7746f53443c6bbad
parent0deb7a0bc08bf4e65f346f2956de4e5227f3a12e
[DataPipe] implementing __len__ for fork (no valid length for demux) (#64215)

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

Test Plan: Imported from OSS

Reviewed By: ejguan

Differential Revision: D30648672

Pulled By: NivekT

fbshipit-source-id: 4780f2f6a79ae15a4009092475e7d92f96dd09a2
test/test_datapipe.py
torch/utils/data/datapipes/iter/combining.py