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

How can I solve it? #1215

Closed
Roll77-luo opened this issue Nov 11, 2021 · 5 comments
Closed

How can I solve it? #1215

Roll77-luo opened this issue Nov 11, 2021 · 5 comments

Comments

@Roll77-luo
Copy link

When using apex mixed precision training, a convolution module in my code needs to be used twice, which leads to an error:Index
1
error: tuple index out of range. How should I solve it?

@ChunhanLi
Copy link

I met same IndexError when do prediction. If I removed apex mixed precesion training, prediction is fine.

@Siu-Keung
Copy link

Same problem while training model under mixed-precision mode.

@Siu-Keung
Copy link

When using apex mixed precision training, a convolution module in my code needs to be used twice, which leads to an error:Index 1 error: tuple index out of range. How should I solve it?

Fixed by downgrading pytorch's version from 1.10 to 1.8.1

@RollingPlain
Copy link

I met the same question when my torch version was 1.10.0
There is my solution

reinstall the whole environment
install torch=1.9.0
install apex

(I didn't use version 1.8. X because an inherent error may be reported in subsequent tasks

@ptrblck
Copy link
Contributor

ptrblck commented Dec 1, 2021

Please use the native mixed-precision training util. via torch.cuda.amp as described here which is supported in the current PyTorch release. Closing

@ptrblck ptrblck closed this as completed Dec 1, 2021
MosyMosy added a commit to MosyMosy/NearestPrior that referenced this issue Jun 15, 2022
MosyMosy added a commit to MosyMosy/NearestPrior that referenced this issue Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants