-
Hi, I cannot find which part of the code do the accumulation as described below. Could you please give me some advice about where it is?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @lesphere This happens deep within Dr.Jit's AD system. This is the relevant piece of code: https://github.com/mitsuba-renderer/drjit/blob/master/src/autodiff/autodiff.cpp#L237-L350. As you'll see there are two sections that handle the reduction when the source has size N and the sink has size 1. |
Beta Was this translation helpful? Give feedback.
Hi @lesphere
This happens deep within Dr.Jit's AD system. This is the relevant piece of code: https://github.com/mitsuba-renderer/drjit/blob/master/src/autodiff/autodiff.cpp#L237-L350. As you'll see there are two sections that handle the reduction when the source has size N and the sink has size 1.