Skip to content

Commit

Permalink
Modified the if-condition to account for types other than float.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai-Suraj-27 committed Jan 27, 2024
1 parent 363f0b2 commit be6fe5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/functional/backends/paddle/elementwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def divide(
*,
out: Optional[paddle.Tensor] = None,
) -> paddle.Tensor:
if not (isinstance(x1, float) or isinstance(x2, float)):
if isinstance(x1, paddle.Tensor) and isinstance(x2, paddle.Tensor):
if paddle.is_complex(x1) or paddle.is_complex(x2):
angle_value = paddle.angle(x1) - paddle.angle(x2)
abs_value = paddle.abs(x1) / paddle.abs(x2)
Expand Down

0 comments on commit be6fe5d

Please sign in to comment.