Skip to content

Commit

Permalink
Merge branch 'dev-2.0.0-beta-arch-update' of https://github.com/Feder…
Browse files Browse the repository at this point in the history
…atedAI/FATE into feature-2.0.0-glm
  • Loading branch information
nemirorox committed Jul 3, 2023
2 parents e5ad936 + dc59473 commit 764e769
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/fate/arch/tensor/distributed/_ops_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ def _binary(input, other, op, swap_operad=False, dtype_promote_to=None):
if swap_operad:
return DTensor(
input.shardings.map_shard(
lambda x: op(other, x, dtype_promote_to=dtype_promote_to), shapes=shapes.shapes, axis=shapes.axis
lambda x: op(other, x), dtype_promote_to=dtype_promote_to, shapes=shapes.shapes, axis=shapes.axis
)
)

else:
return DTensor(
input.shardings.map_shard(
Expand Down

0 comments on commit 764e769

Please sign in to comment.