From 29d2e9497faa17382272c71d3e265ba1be373122 Mon Sep 17 00:00:00 2001 From: Jiabin Yang <360788950@qq.com> Date: Mon, 28 Mar 2022 17:54:17 +0800 Subject: [PATCH] make adam_w import _C_ops from global (#40960) --- python/paddle/optimizer/adamw.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/paddle/optimizer/adamw.py b/python/paddle/optimizer/adamw.py index cbc27a68a18..e69dcf170d9 100644 --- a/python/paddle/optimizer/adamw.py +++ b/python/paddle/optimizer/adamw.py @@ -19,10 +19,9 @@ from ..fluid import framework from ..fluid.framework import Variable from ..fluid.dygraph import base as imperative_base from collections.abc import Callable +from .. import _C_ops import paddle -_C_ops = core.ops - __all__ = [] -- GitLab