PaddleSOT icon indicating copy to clipboard operation
PaddleSOT copied to clipboard

A Bytecode level Implementation of Symbolic OpCode Translator For PaddlePaddle

Results 21 PaddleSOT issues
Sort by recently updated
recently updated
newest added

本pr验证了方案三(即”随行记录“方案)的可行性

开启 `FLAGS_enable_pir_api=1` 时 `examples/trace_basic.py` 报错 ``` # export FLAGS_enable_pir_api=1 # python examples/trace_basic.py [Cost Model] New step start, current state is StepState.RUN_SOT [eval_frame_callback] start to translate: [transform] OriginCode: foo 8 0...

PFCC

修复了stop gradient没有放入到SIR的问题: ``` x.stop_gradient=True ``` 这里的 x 不会有任何的影响。只会在模拟时有效,组网还是stop gradient 为False。

支持闭包的`DELETE_DEREF` - [x] 补充单测

contributor

> **Note** > > ✅ 是可以点的,可以直达文档~ | | Python 3.8 | Python 3.9 | Python 3.10 | Python 3.11 | Python 3.12 | | :-: | :-: | :-: |...

在 https://github.com/PaddlePaddle/PaddleSOT/pull/258 的基础上,主要针对 opcode_executor.py 中的typehint进行优化,确保在绝大多数情况下,IDE的类型注解都可以正常工作。并对目前难以解决的情况添加了TODO。

contributor

## 背景 我们在模拟执行的时候,会判断一个函数是否是 Paddle 组网 API,将组网 API 放入 SIR 中,而非组网 API 则会 inline call 模拟执行字节码 但由于我们现在用于判读一个 API 是否是组网 API 的逻辑仍然不够 robust,总有一些情况会导致部分组网 API 误走模拟执行逻辑 我们的组网 API 基本都是动静统一的,这些 API 长这个样子: ```python def...

🐾 meow

让ci不会在fork的仓库上运行

contributor
status: proposed