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

train.py problem?? #20

Open
DavidKong96 opened this issue Jul 27, 2020 · 9 comments
Open

train.py problem?? #20

DavidKong96 opened this issue Jul 27, 2020 · 9 comments

Comments

@DavidKong96
Copy link

sorry,when i run train.py, there is a bug
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [8, 1]], which is output 0 of TBackward, is at version 2; expected version 1 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).
could you please tell me why that happend?

@hytseng0509
Copy link
Owner

Thanks for raising the problem. Which Pytorch version are you using?

@DavidKong96
Copy link
Author

Thanks for raising the problem. Which Pytorch version are you using?

i use 1.5.0

@hytseng0509
Copy link
Owner

Can you try to run the process using Pytorch 1.4?
We are correcting the problem for Pytorch 1.5.

@DavidKong96
Copy link
Author

Can you try to run the process using Pytorch 1.4?
We are correcting the problem for Pytorch 1.5.

yes,it works on 1.4.0 ! thank you so much

@SmartNight-cc
Copy link

Can you try to run the process using Pytorch 1.4? We are correcting the problem for Pytorch 1.5.

Hello! I have the same problem, my torch.version=1.11.0, how can I fix it?

@fikry102
Copy link

fikry102 commented Sep 20, 2022

Can you try to run the process using Pytorch 1.4? We are correcting the problem for Pytorch 1.5.

Hello! I have the same problem, my torch.version=1.11.0, how can I fix it?

I also had the same problem. My torch.version is 1.8.0.
I find this problem may have something to with the torch.autograd.grad issue #40.
I create a QQ group whose group number is 693337454. Anyone interested in these problems is welcome to join in us for further dicussion.

@SmartNight-cc
Copy link

Can you try to run the process using Pytorch 1.4? We are correcting the problem for Pytorch 1.5.

Hello! I have the same problem, my torch.version=1.11.0, how can I fix it?

I also had the same problem. My torch.version is 1.8.0. I find this problem may have something to with the torch.autograd.grad issue #40. I create a QQ group whose group number is 693337454. Anyone interested in these problems is welcome to join in us for further dicussion.

Hello, I did not search for this group number

@fikry102
Copy link

Can you try to run the process using Pytorch 1.4? We are correcting the problem for Pytorch 1.5.

Hello! I have the same problem, my torch.version=1.11.0, how can I fix it?

I also had the same problem. My torch.version is 1.8.0. I find this problem may have something to with the torch.autograd.grad issue #40. I create a QQ group whose group number is 693337454. Anyone interested in these problems is welcome to join in us for further dicussion.

Hello, I did not search for this group number

I just forgot to enable searching the group by group number. You can try it again.

@juliusyang97
Copy link

Can you try to run the process using Pytorch 1.4?
We are correcting the problem for Pytorch 1.5.

yes,it works on 1.4.0 ! thank you so much

pytorch=2.0.0 is works, you can try

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