DistributedProxySampler RuntimeError when indices are padded
See original GitHub issue🐛 Bug description
The RuntimeError that occurs in the DistributedProxySampler
on line 241 shouldn’t be there since the indices are padded with the full sample which was updated because of this comment.
Environment
- PyTorch Version (e.g., 1.4):
- Ignite Version (e.g., 0.3.0):
- OS (e.g., Linux):
- How you installed Ignite (
conda
,pip
, source): - Python version:
- Any other relevant information:
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
DistributedProxySampler — PyTorch-Ignite v0.4.10 ...
High-level library to help with training and evaluating neural networks in PyTorch flexibly and transparently.
Read more >pytorch-ignite Changelog - pyup.io
Fixed distributed proxy sampler runtime error (1192) - Fixes bug using `idist` with "nccl" backend and torch cuda is not available (1166)
Read more >Expected a 'cuda' device type for generator ... - Stack Overflow
Generator object at 0x7ff7f8143110> (Pdb) indices ... generator=g).tolist() *** RuntimeError: Expected a 'cuda' device type for generator ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vfdev-5 I created PR #1192 with the changes you described above. The test has also been updated to reflect the newer test you described earlier. I am not sure if the PR how you wanted it so would be good to get feedback. Thanks
Taking the example from the unit test and setting the
num_replicas
to 8 produces the errorThe error:
The assert will fail too after fixing the RuntimeError but that is because of the padding.