SyTen

◆ AdjointEvaluator

using syten::STensorImpl::Autodiff::AdjointEvaluator = typedef std::function<STensor(ComputeNode& node, Size input_number, STensorId const result_id)>

Type of the input adjoint evaluator which can access the adjoints of all output values as well as the stored input and output tensors of the node to evaluate an output adjoint of an upstream node.

It is the responsibility of the constructor of this node to properly store the accessed input/output tensors in input_tensors and output_tensors.