Skip to content
fn

accumulate_leaf_for_graph

void accumulate_leaf_for_graph(const int & leaf, const int & grad)

accumulate_leaf for create_graph: the gradient keeps its graph and is summed into grad_impl by add_op.