We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thank you for work and sharing this code.
I was wondering the meaning of new_grad = torch.ones_like(grad) in the following code in universal.py.
new_grad = torch.ones_like(grad)
def _backward_hook(self, grad): self.out_mask += grad.data.abs().sum(2, keepdim=True).sum(3, keepdim=True).cpu().sum(0, keepdim=True).view(-1) new_grad = torch.ones_like(grad) return new_grad
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Thank you for work and sharing this code.
I was wondering the meaning of
new_grad = torch.ones_like(grad)
in the following code in universal.py.The text was updated successfully, but these errors were encountered: