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

why use custom grad clip function? #57

Open
QasimWani opened this issue Dec 28, 2020 · 0 comments
Open

why use custom grad clip function? #57

QasimWani opened this issue Dec 28, 2020 · 0 comments

Comments

@QasimWani
Copy link

def clip_grad_by_norm_(self, grad, max_norm):

hey, I'm confused why you didn't use the standard grad clipping function nn.utils.clip_grad_norm(parameters, max_value) instead of implementing clip_grad_by_norm_?

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