paddle-eager-graph

Installation
SKILL.md

Paddle 动态图(Eager Mode)导航索引

Paddle 动态图边执行边建图:前向执行时构建反向图,调用 backward() 时按拓扑序执行反向图。

前向调用链路

Python paddle.add(x, y)
① ops_api.cc          ─ Python-C 映射,GetTensorFromArgs 提取 Tensor
② eager_op_function.cc ─ 参数解析 / Dist Tensor / 释放 GIL / backend 选择
③ dygraph_functions.cc ─ AMP / Type Promotion / 创建 GradNode / 构建反向图
④ api.cc              ─ KernelKey 构造 / Kernel 选择 / PrepareData / InferMeta
⑤ PHI Kernel 执行
Related skills
Installs
5
GitHub Stars
2
First Seen
Mar 13, 2026