SyTen

◆ input_nodes

Vec<Pair<ComputeNodePtr, Size> > syten::STensorImpl::Autodiff::ComputeNode::input_nodes
private

Stores the compute nodes which provided input to this compute node and an index into that compute nodes output tensors ids vector.

Originating nodes, i.e. those associated to a starting point of a calculation, have a single element in input_nodes which is a nullptr. Hence, input_nodes may contain nullptr values and hence a check is necessary before blindly dereferencing any ComputeNodePtr stored here. If the pointer is a nullpointer, then the associated integer denotes the type of creation: 0 for simply enabling autodifferentiation, 1 when complex-conjugating a differentiable tensor.

Referenced by build_links_upstream(), draw_recursive(), find_origin_node(), full_name(), and get_input_adjoint().