Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: dimension specified as 0 but tensor has no dimensions #6895

Closed
kaushikb11 opened this issue Apr 8, 2021 · 2 comments · Fixed by #6896
Closed

IndexError: dimension specified as 0 but tensor has no dimensions #6895

kaushikb11 opened this issue Apr 8, 2021 · 2 comments · Fixed by #6896
Assignees
Labels
accelerator: tpu Tensor Processing Unit bug Something isn't working help wanted Open to be worked on priority: 0 High priority task
Milestone

Comments

@kaushikb11
Copy link
Contributor

kaushikb11 commented Apr 8, 2021

🐛 Bug

TPUs training throwing the following error during validation.
image (3)

https://colab.research.google.com/drive/1rHBxrtopwtF8iLpmC_e7yl3TeDGrseJL?usp=sharing

Expected behavior

Environment

Note: Bugs with code are solved faster ! Colab Notebook should be made public !

You can get the script and run it with:

wget https://raw.githubusercontent.com/PyTorchLightning/pytorch-lightning/master/tests/collect_env_details.py
# For security purposes, please check the contents of collect_env_details.py before running it.
python collect_env_details.py
  • PyTorch Version (e.g., 1.0):
  • OS (e.g., Linux):
  • How you installed PyTorch (conda, pip, source):
  • Build command you used (if compiling from source):
  • Python version:
  • CUDA/cuDNN version:
  • GPU models and configuration:
  • Any other relevant information:

Additional context

@kaushikb11 kaushikb11 added bug Something isn't working help wanted Open to be worked on labels Apr 8, 2021
@kaushikb11 kaushikb11 self-assigned this Apr 8, 2021
@kaushikb11 kaushikb11 added this to the 1.2.x milestone Apr 8, 2021
@kaushikb11 kaushikb11 added the priority: 0 High priority task label Apr 8, 2021
@edenlightning edenlightning added the accelerator: tpu Tensor Processing Unit label Apr 8, 2021
@tchaton
Copy link
Contributor

tchaton commented Apr 8, 2021

@kaushikb11 Any code to share ?

@kaushikb11
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accelerator: tpu Tensor Processing Unit bug Something isn't working help wanted Open to be worked on priority: 0 High priority task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants