From c8fbd3cd6f263e0cc8ca04b17db232ab74ca1fce Mon Sep 17 00:00:00 2001 From: wanghuancoder Date: Fri, 7 Jan 2022 14:41:58 +0800 Subject: [PATCH] patch_tensor_method_func, test=develop (#38761) --- python/paddle/fluid/framework.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index 3d8cd1142cf..a26e322cbd9 100644 --- a/python/paddle/fluid/framework.py +++ b/python/paddle/fluid/framework.py @@ -90,6 +90,8 @@ def _test_eager_guard(tracer=None): if not _already_patch_eager_tensor: from .dygraph.varbase_patch_methods import monkey_patch_varbase monkey_patch_varbase() + from .dygraph import monkey_patch_math_varbase + monkey_patch_math_varbase() _already_patch_eager_tensor = True if tracer is None: core._set_eager_tracer(_dygraph_tracer_) -- GitLab