diff --git a/python/paddle/optimizer/adamw.py b/python/paddle/optimizer/adamw.py index 81ee0f63d2633369b86e37879348c5bc308e9d21..34fb201d8ccaf7bb801de53f30b3f2718838d83c 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