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

Error #27

Open
layansawalha opened this issue Oct 17, 2022 · 0 comments
Open

Error #27

layansawalha opened this issue Oct 17, 2022 · 0 comments

Comments

@layansawalha
Copy link

When I run the training/final step, I get this error can you advise?
^CTraceback (most recent call last):
File "train.py", line 198, in
main(args, configs)
File "train.py", line 93, in main
nn.utils.clip_grad_norm_(model.parameters(), grad_clip_thresh)
File "/home/layan/.local/lib/python3.6/site-packages/torch/nn/utils/clip_grad.py", line 36, in clip_grad_norm_
total_norm = torch.norm(torch.stack([torch.norm(p.grad.detach(), norm_type).to(device) for p in parameters]), norm_type)
File "/home/layan/.local/lib/python3.6/site-packages/torch/nn/utils/clip_grad.py", line 36, in
total_norm = torch.norm(torch.stack([torch.norm(p.grad.detach(), norm_type).to(device) for p in parameters]), norm_type)
File "/home/layan/.local/lib/python3.6/site-packages/torch/functional.py", line 1293, in norm
return _VF.norm(input, p, dim=_dim, keepdim=keepdim) # type: ignore
File "/home/layan/.local/lib/python3.6/site-packages/torch/_VF.py", line 25, in getattr
def getattr(self, attr):

image

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