Skip to content

replace to use native clip norm#221

Merged
mingxin-zheng merged 2 commits intoProject-MONAI:mainfrom
wyli:fixes-clip
Apr 18, 2023
Merged

replace to use native clip norm#221
mingxin-zheng merged 2 commits intoProject-MONAI:mainfrom
wyli:fixes-clip

Conversation

@wyli
Copy link
Copy Markdown
Contributor

@wyli wyli commented Apr 17, 2023

fixes Project-MONAI/MONAI#6378

will this work @dongyang0122 ?

@wyli
Copy link
Copy Markdown
Contributor Author

wyli commented Apr 17, 2023

it's also used here

torch.nn.utils.clip_grad_norm_(self.model.parameters(), 0.5)

Signed-off-by: Wenqi Li <[email protected]>
Copy link
Copy Markdown
Contributor

@mingxin-zheng mingxin-zheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @wyli !

Two comments:

@mingxin-zheng mingxin-zheng merged commit 8fa3917 into Project-MONAI:main Apr 18, 2023
wyli added a commit to Project-MONAI/MONAI that referenced this pull request Apr 18, 2023
Fixes #6378 .

### Description

- Project-MONAI/research-contributions#221
- Project-MONAI/research-contributions#219

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: Mingxin Zheng <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Co-authored-by: Wenqi Li <[email protected]>
Co-authored-by: Wenqi Li <[email protected]>
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

Successfully merging this pull request may close these issues.

algo_templates error dints

2 participants