|
private |
Function which, when passed a reference to this input node, an index j
into this ComputeNode input nodes input_number
and a result tensor ID R
with respect to which to build the adjoint, i.e. constructs.
\[ \sum_{i \in \mathrm{children}(\mathtt{output\_nodes})}\left[ \frac{\mathtt{d}\;R}{\mathrm{d}\;\mathtt{out}_i} \frac{\partial \mathtt{out}_i}{\mathtt{in}_j} \right] \]
where the sum is equivalent to the adjoint of the input with respect to this sub-tree of the calculation and the first part of the product is equivalent to the adjoint of the respective output tensor.
This function will never be called with an input_number
exceeding the input_nodes
vector of this node, instead, 0 will be returned beforehand.
Referenced by get_input_adjoint().