Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
rkooo567 committed Sep 19, 2024
1 parent a6d438b commit bd8238c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/ray/experimental/channel/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,8 @@ def write(self, val: Any, timeout: Optional[float] = None) -> None:
# If it is an exception, there's only 1 return value.
# We have to send the same data to all channels.
if isinstance(val, Exception):
val = tuple(val for _ in range(len(self._output_channels)))
if len(self._output_channels) > 1:
val = tuple(val for _ in range(len(self._output_channels)))

if not self._is_input:
if len(self._output_channels) > 1:
Expand Down

0 comments on commit bd8238c

Please sign in to comment.