Skip to content

Commit

Permalink
FIX-modin-project#2322: fix count of return values of ray remote funcs
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
  • Loading branch information
anmyachev committed Nov 6, 2020
1 parent d0fb8ef commit 6a00aef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modin/engines/ray/pandas_on_ray/frame/axis_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(self, list_of_blocks):
def deploy_axis_func(
cls, axis, func, num_splits, kwargs, maintain_partitioning, *partitions
):
lengths = kwargs.get("_lengths", None)
return deploy_ray_func._remote(
args=(
PandasFrameAxisPartition.deploy_axis_func,
Expand All @@ -43,7 +44,7 @@ def deploy_axis_func(
maintain_partitioning,
)
+ tuple(partitions),
num_returns=num_splits * 3,
num_returns=num_splits * 3 if lengths is None else len(lengths) * 3,
)

@classmethod
Expand Down

0 comments on commit 6a00aef

Please sign in to comment.