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

Possible BUG with get_params_grad #27

Open
balditommaso opened this issue Jan 27, 2025 · 0 comments
Open

Possible BUG with get_params_grad #27

balditommaso opened this issue Jan 27, 2025 · 0 comments

Comments

@balditommaso
Copy link

The method get_params_grad pot 0.0 when params.grad is None, but it should be torch.tensor(0.0), because when it will be called the torch method torch.autograd.grad it will raise an error, because a float does not have `.is_nested' method defined.

Let me know if you are facing the same problem.

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