Skip to content

Commit

Permalink
remove monkey_patch_math_tensor, its part of monkey_patch_tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Sep 30, 2023
1 parent 3b1894c commit 9532b66
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/paddle/base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
raise e

from . import core
from .layers.math_op_patch import monkey_patch_variable
from .dygraph.math_op_patch import monkey_patch_math_tensor
from .dygraph.tensor_patch_methods import monkey_patch_tensor

# import all class inside framework into base module
from . import framework
Expand Down Expand Up @@ -91,6 +88,8 @@
from . import layers
from . import dygraph
from . import backward
from .layers.math_op_patch import monkey_patch_variable
from .dygraph.tensor_patch_methods import monkey_patch_tensor
from .backward import gradients
from . import incubate
from .param_attr import ParamAttr, WeightNormParamAttr
Expand Down Expand Up @@ -207,7 +206,6 @@ def remove_flag_if_exists(name):
__bootstrap__()
monkey_patch_variable()
monkey_patch_tensor()
monkey_patch_math_tensor()

# NOTE(Aurelius84): clean up ExecutorCacheInfo in advance manually.
atexit.register(core.clear_executor_cache)
Expand Down

0 comments on commit 9532b66

Please sign in to comment.