BachiLi / diffvg

Differentiable Vector Graphics Rasterization
https://people.csail.mit.edu/tzumao/diffvg/
Apache License 2.0
902 stars 152 forks source link

Support optional flag to clamp gradient in 'backward' to prevent crash #48

Open daniel347x opened 1 year ago

daniel347x commented 1 year ago

Identical PR to https://github.com/BachiLi/diffvg/pull/45 - but using a dedicated branch from my forked repository so I can continue making other changes in the fork.

BachiLi commented 1 year ago

Let me ponder a bit what is the best way to do this. If I can't figure out a better/easier way I'll merge this. : >