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

Training error caused by inplace operations #33

Open
LeoDarcy opened this issue Sep 24, 2024 · 1 comment
Open

Training error caused by inplace operations #33

LeoDarcy opened this issue Sep 24, 2024 · 1 comment

Comments

@LeoDarcy
Copy link

input_normal.jdata /= (input_normal.jdata.norm(dim=1, keepdim=True) + 1e-6)

It leads to "RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation" during training.

@LeoDarcy LeoDarcy reopened this Sep 25, 2024
@LeoDarcy
Copy link
Author

After making modifications, I still encounter similar errors. May I ask if there are any other code that need to be modified? Thank you very much.

@LeoDarcy LeoDarcy reopened this Sep 25, 2024
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

1 participant