Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dygraph mode to dynamic mode #54633

Merged
merged 1 commit into from
Jun 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _partial_send_op(tensor, group, dst, nranks, rank_id):
group is not None
), "Group should be an instance for _partial_send_op."
dst_rank_in_group = group.get_group_rank(dst)
if framework.in_dygraph_mode():
if framework.in_dynamic_mode():
return group.process_group.send_partial(
tensor, dst_rank_in_group, nranks, rank_id
)
Expand All @@ -195,7 +195,7 @@ def _partial_recv_op(tensor, group, src, nranks, rank_id):
group is not None
), "Group should be an instance for _partial_recv_op."
src_rank_in_group = group.get_group_rank(src)
if framework.in_dygraph_mode():
if framework.in_dynamic_mode():
return group.process_group.recv_partial(
tensor, src_rank_in_group, nranks, rank_id
)
Expand Down Expand Up @@ -236,7 +236,7 @@ def partial_batch_isend_irecv(p2p_op_list):
if _warn_cur_rank_not_in_group(group):
return

if framework.in_dygraph_mode():
if framework.in_dynamic_mode():
group = _get_global_group() if group is None else group
backend = group.backend
tasks = []
Expand Down