diff --git a/python/paddle/optimizer/adamw.py b/python/paddle/optimizer/adamw.py index 30b8fa975a7c6f12f0911f02037cac553501530c..10d6af651777e2ec91af0bd03fddd4fd4f0232c7 100644 --- a/python/paddle/optimizer/adamw.py +++ b/python/paddle/optimizer/adamw.py @@ -18,7 +18,7 @@ from ..fluid import core from ..fluid import framework from ..fluid.framework import Variable from ..fluid.dygraph import base as imperative_base -from collections import Callable +from collections.abc import Callable import paddle _C_ops = core.ops