未验证 提交 0e2a4d57 编写于 作者: W WangZhen 提交者: GitHub

Pass backend arg to symbolic_translate (#56107)

上级 81c56e27
......@@ -709,8 +709,11 @@ class SymbolicStaticFunction(StaticFunction):
from sot import symbolic_translate
build_strategy = self._kwargs.get("build_strategy", None)
backend = self._kwargs.get("backend", None)
traced_fun = symbolic_translate(
self._dygraph_function, build_strategy=build_strategy
self._dygraph_function,
build_strategy=build_strategy,
backend=backend,
)
if self._class_instance is not None:
args = (self._class_instance,) + args
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册