未验证 提交 bb1596b8 编写于 作者: T Tingquan Gao 提交者: GitHub

compatibility with python 3.11 (#2878)

上级 8ed20600
...@@ -17,6 +17,9 @@ from __future__ import division ...@@ -17,6 +17,9 @@ from __future__ import division
from __future__ import print_function from __future__ import print_function
import inspect import inspect
# for python3.11
if not hasattr(inspect, 'getargspec'):
inspect.getargspec = inspect.getfullargspec
from paddle import optimizer as optim from paddle import optimizer as optim
from ppcls.utils import logger from ppcls.utils import logger
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册