mitsuba-renderer / drjit

Dr.Jit — A Just-In-Time-Compiler for Differentiable Rendering
BSD 3-Clause "New" or "Revised" License
593 stars 43 forks source link

Higher order derivatives #149

Closed daseyb closed 1 year ago

daseyb commented 1 year ago

Is there a way to compute higher-order partial derivatives of a multi-dimension function?

That is, for some scalar-valued function $f(x,y)$ I want to compute $\frac{\partial^2 f(x,y)}{\partial x \partial y}$.

I tried some variations of multiple calls to backwards, but I've always gotten a crash complaining about missing gradients.

Thanks!

wjakob commented 1 year ago

It's not supported, Dr.Jit only computes first-order derivatives.