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

About train() and no_grad() #66

Open
SUN-zx opened this issue Jun 25, 2024 · 0 comments
Open

About train() and no_grad() #66

SUN-zx opened this issue Jun 25, 2024 · 0 comments

Comments

@SUN-zx
Copy link

SUN-zx commented Jun 25, 2024

I have observed that in the code, the model's scene.gaussians.train() and gaussians.optimizer.step() are both performed under the state of with torch.no_grad():. Will this not prevent the parameters from being updated? Can parameters be updated solely relying on loss.backward()?

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