BachiLi / diffvg

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

serialize_scene cpu conversion question #85

Open Goulustis opened 2 months ago

Goulustis commented 2 months ago

Hi,

Why are all the parameters converted to the CPU in pydiffvg.RenderFunction.serialize_scene? Wouldn't this have an overhead of moving to the parameters to cuda in pydiffvg.RenderFunction.apply when rendering?