Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

fix clip_grad_norm_ if grad_norm > max_norm > 0: TypeError: '>' not supported between instances of 'float' and 'NoneType' #1054

Conversation

chenyangyu1988
Copy link
Contributor

Summary: cast max_norm from None to 0.0 to fix the issue.

Differential Revision: D17947540

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Oct 16, 2019
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D17947540

…upported between instances of 'float' and 'NoneType' (facebookresearch#1054)

Summary:
Pull Request resolved: facebookresearch#1054

cast max_norm from None to 0.0 to fix the issue.

Differential Revision: D17947540

fbshipit-source-id: a30141a01a11a3075561817537272dc568a1db19
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D17947540

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 41108ae.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants