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

args.clip #49

Open
Eksi123 opened this issue Aug 24, 2023 · 0 comments
Open

args.clip #49

Eksi123 opened this issue Aug 24, 2023 · 0 comments

Comments

@Eksi123
Copy link

Eksi123 commented Aug 24, 2023

if args.clip > 0:
torch.nn.utils.clip_grad_norm_(model.parameters(), args.clip)

hi everybody!

I just want to know what role dose the above block play? Why is the args.clip default 0 ?

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