Autograd nodes and the backward engine: how gradients meetAutograd 节点与反向引擎:梯度如何汇合
Backward nodes apply vector–Jacobian products. The autograd engine accumulates incoming contributions in input buffers and schedules a node when its dependencies are satisfied. AccumulateGrad then writes or adds the resulting gradient to a leaf tensor’s .grad.反向节点计算向量–雅可比积。Autograd 引擎用输入缓冲区汇总梯度贡献,在依赖满足后调度节点;AccumulateGrad 随后将结果写入或累加到叶子张量的 .grad。