Clipping gradients by value can turn them 24 degrees, or 51
This story is from 2026-11-30. It is preserved in the archive; the latest stories are on the live feed.
There are two ways to clip a gradient and they're often treated as the same thing. Take the gradient (0.3, 0.4, 12). Its length is 12.01 and nearly all of that is in the last entry. If you clip each value to 1 you get (0.3, 0.4, 1), which points 24.2 degrees away from where you started. If you clip…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-11-30 09:35 · DEV Community — Machine Learning
Clipping gradients by value can turn them 24 degrees, or 51