[讨论] 推桨中三个潜在的设计问题。
作者: PlumBlossomMaid创建于 2026年3月1日更新于 2026年9月29日
- Redundant Adapters for Static Graph Support The
Modelclass currently uses three different adapters based on the execution mode: -DynamicGraphAdapter(dynamic mode) -StaticGraphAdapter(static mode) -StaticPIRGraphAdapter(PIR static mode) From what I understand, bothStaticGraphAdapterandStaticPIRGraphAdapterseem to replicate the core functionality ofpaddle.jit.to_static—they convert a dynamically defined model into a static graph representation for execution. Could this architecture be simplified toDynamicGraphAdapter+paddle.jit.to_static, thereby reducing the codebase from ~2000+ lines to a much more maintainable version?
内容来源: PaddlePaddle/Paddle