Skip to content

ImportError: cannot import name 'forward_complete_op_role' from 'paddle.distributed.passes.pass_utils' (/usr/local/lib/python3.11/dist-packages/paddle/distributed/passes/pass_utils.py) #71947

@Ibrah-N

Description

@Ibrah-N

bug描述 Describe the Bug

I'm trying to install paddlepaddle-gpu==2.6.2 (the latest) and then whenever I import it give me the following error.

'''python
!pip install paddlepaddle-gpu==2.6.2

import paddle
'''

'''Error

ImportError Traceback (most recent call last)
in <cell line: 0>()
----> 1 import paddle

15 frames
/usr/local/lib/python3.11/dist-packages/paddle/distributed/passes/pipeline_scheduler_pass/pipeline_1f1b.py in
24 from ...utils.log_utils import get_logger
25 from ..pass_base import register_pass
---> 26 from ..pass_utils import (
27 AutoParallelStreamType,
28 _add_event_dependency,

ImportError: cannot import name 'forward_complete_op_role' from 'paddle.distributed.passes.pass_utils' (/usr/local/lib/python3.11/dist-packages/paddle/distributed/passes/pass_utils.py)


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

'''

其他补充信息 Additional Supplementary Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions