question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RuntimeError occurs when running PartA2 on torch 1.2

See original GitHub issue

Hello,

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gardenbabycommented, Jul 22, 2020

Yeah. It still works when I test PartA2 model but not when training, while PVRCNN works in both situations. Here is the problem.

RuntimeError: range.second - range.first == t.size() INTERNAL ASSERT FAILED at /opt/conda/conda-
bld/pytorch_1565272271120/work/torch/csrc/autograd/generated/Functions.cpp:55, 
please report a bug to PyTorch. inconsistent range for TensorList output

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.

1reaction
sshaoshuaicommented, Jul 21, 2020

It is reasonable that fg_inds is 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found