Skip to content

Commit

Permalink
[ADAG]Redundant code optimization (#50305)
Browse files Browse the repository at this point in the history
Signed-off-by: noemotiovon <[email protected]>
  • Loading branch information
noemotiovon authored Feb 24, 2025
1 parent f100fe8 commit e6bde94
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions python/ray/dag/compiled_dag_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,12 +497,7 @@ def __init__(

for arg in resolved_args:
if isinstance(arg, ChannelInterface):
if isinstance(arg, ChannelInterface):
channel = arg
else:
adapter = arg
channel = adapter.get_dag_input_channel()

channel = arg
if channel in input_channel_to_idx:
# The same channel was added before, so reuse the index.
channel_idx = input_channel_to_idx[channel]
Expand Down Expand Up @@ -2728,7 +2723,7 @@ def _visualize_ascii(self) -> str:
# | |---------------------------->| # noqa
# | 9:Output[0] 10:Output[1] # noqa
# |<----------------------------------------------------------| # noqa
# 8:MultiOutputNod
# 8:MultiOutputNode
```
"""

Expand Down

0 comments on commit e6bde94

Please sign in to comment.