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

can i solve cuda memory problem by setting densenet121.grad to be zero? #89

Open
papercut-linkin opened this issue May 20, 2022 · 0 comments

Comments

@papercut-linkin
Copy link

I read about the paper and try to reproduce the simulation but cuda memory always haunts me.
I try to add

   for p1 in self.push_color_trunk.parameters():
            p1.requires_grad = False
        for p2 in self.push_depth_trunk.parameters():
            p2.requires_grad = False
        for p3 in self.grasp_color_trunk.parameters():
            p3.requires_grad = False
        for p4 in self.grasp_depth_trunk.parameters():
            p4.requires_grad = False

to reduce calculating
this actually works, the code can run now. But can somebody tell me whether this is right? cuz I'm not sure if this modification will destroy the training process

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