RuntimeError occurs when running PartA2 on torch 1.2
See original GitHub issueHello,
I found that the following error will occur when running PartA2 on torch 1.2.
RuntimeError: range.second - range.first == t.size() INTERNAL ASSERT FAILED at /pytorch/torch/csrc/autograd/generated/Functions.cpp:55, please report a bug to PyTorch. inconsistent range for TensorList output
Since the requirements in INSTALL.md says that the code was tested on PyTorch 1.1, I changed the PyTorch version and it worked.
The issue here is quite similar. Is function torch.nonzero() the reason?
Thank you.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Cublas runtime error : the GPU program failed to execute ...
Hi, I am using pytorch 1.2.0 with CUDA 10.0.130 to train a neural network on a GeForce 2080 ... My code runs successfully...
Read more >PyTorch JIT and TorchScript - Towards Data Science
The tracer runs the supplied module and records the tensor operations performed. This recording is turned into a TorchScript module.
Read more >"RuntimeError: CUDA error: out of memory" - Stack Overflow
The error occurs because you ran out of memory on your GPU. One way to solve it is to reduce the batch size...
Read more >cuda runtime error (801) & RuntimeError: Expected object of ...
I got the following error after running this code: ... I use 1.2 torch since 1.3 is not available on their site with...
Read more >How to Fix Runtime Error on Windows in 4 Ways - iSkysoft
This error is commonly encountered when you try to run a program and this error message is shown. The Windows runtime error occurs...
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 Free
Top 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

Same here. The error only occurs when training PartA2 in PCDet v0.2. I changed the PyTorch version from 1.2 to 1.1 and it worked.
It is reasonable that
fg_indsis empty during the beginning of the training, and we do have functions to process this situation as follows: https://github.com/open-mmlab/OpenPCDet/blob/master/pcdet/models/roi_heads/target_assigner/proposal_target_layer.py#L149-L154