#78078·Paddle

[讨论] 推桨中三个潜在的设计问题。

作者: PlumBlossomMaid创建于 2026年3月1日更新于 2026年9月29日
  1. Redundant Adapters for Static Graph Support The Model class currently uses three different adapters based on the execution mode: - DynamicGraphAdapter (dynamic mode) - StaticGraphAdapter (static mode) - StaticPIRGraphAdapter (PIR static mode) From what I understand, both StaticGraphAdapter and StaticPIRGraphAdapter seem to replicate the core functionality of paddle.jit.to_static—they convert a dynamically defined model into a static graph representation for execution. Could this architecture be simplified to DynamicGraphAdapter + paddle.jit.to_static, thereby reducing the codebase from ~2000+ lines to a much more maintainable version?

内容来源: PaddlePaddle/Paddle