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

unscale_and_clip_grads: use clamp on device instead of on host #5547

Closed
wants to merge 4 commits into from

Conversation

nelyahu
Copy link
Contributor

@nelyahu nelyahu commented May 20, 2024

if statement causes device-host synhcornization.
clamp operation allows doing the same on the device in more efficient way

if statement causes device-host synhcornization.
clamp operation allows doing the same on the device
in more efficient way
@nelyahu
Copy link
Contributor Author

nelyahu commented May 27, 2024

closed - merged this PR into #5504

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.

None yet

3 participants