module 'paddle.distributed' has no attribute 'init_parallel_env'
收藏
module 'paddle.distributed' has no attribute 'init_parallel_env'
收藏
我在练习官网的入门样例: 快速上手使用PaddleX-MobileNetV3_ssld图像分类,在aistudio环境的notebook中运行报错,信息如下。大佬可否帮忙指点下。
AttributeError Traceback (most recent call last) in 5 import os 6 os.environ['CUDA_VISIBLE_DEVICES'] = '0' ----> 7 import paddlex as pdx /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/__init__.py in 16 17 from paddlex.utils.env import get_environ_info, init_parallel_env ---> 18 init_parallel_env() 19 20 from . import cv /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/utils/env.py in init_parallel_env() 69 np.random.seed(local_seed) 70 ---> 71 paddle.distributed.init_parallel_env() AttributeError: module 'paddle.distributed' has no attribute 'init_parallel_env'
0
收藏
请登录后评论
paddleX2.0版本以上,就不出错了。引出的问题是:paddleX2和1的兼容性,以后还能用paddleX1.X.X吗?
升级版本了呗。
我也是这个问题,请问是怎么解决的?
AttributeError: module 'paddle.distributed' has no attribute 'init_parallel_env'
安装pddlex1.3.11,可以解决这个问题。 pip install paddlex==1.3.11
这个问题有人解决吗?
PaddlePaddle的2.2.1版本paddle.distributed是存在init_parallel_env的,把PaddlePaddle升级一下就好了。
还是不行