未验证 提交 c8fbd3cd 编写于 作者: W wanghuancoder 提交者: GitHub

patch_tensor_method_func, test=develop (#38761)

上级 769e5bc4
...@@ -90,6 +90,8 @@ def _test_eager_guard(tracer=None): ...@@ -90,6 +90,8 @@ def _test_eager_guard(tracer=None):
if not _already_patch_eager_tensor: if not _already_patch_eager_tensor:
from .dygraph.varbase_patch_methods import monkey_patch_varbase from .dygraph.varbase_patch_methods import monkey_patch_varbase
monkey_patch_varbase() monkey_patch_varbase()
from .dygraph import monkey_patch_math_varbase
monkey_patch_math_varbase()
_already_patch_eager_tensor = True _already_patch_eager_tensor = True
if tracer is None: if tracer is None:
core._set_eager_tracer(_dygraph_tracer_) core._set_eager_tracer(_dygraph_tracer_)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册