You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
我们目前会将整个 SIR 函数用
paddle.jit.to_static
包装PaddleSOT/symbolic_trace/symbolic/compile_cache.py
Lines 43 to 48 in 3ca867a
将其转换为动转静的 StaticFunction,转换的函数中主体逻辑就是利用 Interpreter 解释 SIR,进行组网,由于这部分可能有些动转静会出问题的语法,因此使用了
paddle.jit.not_to_static
进行装饰PaddleSOT/symbolic_trace/symbolic/interpreter.py
Lines 71 to 83 in 3ca867a
然而实际情况我们有些 API 仍然需要
to_static
的代码转换,比如paddle.to_tensor
,因此我们希望不利用paddle.jit.not_to_static
将整个函数装饰,而是只装饰部分,避免部分代码动转静转写出问题,并将组网代码进行转换The text was updated successfully, but these errors were encountered: