Skip to content

Commit

Permalink
Update norms.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel4078 authored Sep 5, 2023
1 parent 992cc28 commit 3f04ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/functional/backends/paddle/experimental/norms.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def l1_normalize(
x: paddle.Tensor, /, *, axis: int = None, out: paddle.Tensor = None
) -> paddle.Tensor:
if not isinstance(x, paddle.Tensor):
x = paddle.to_tensor(x, dtype=x.dtype)
x = paddle.to_tensor(x)
if axis is None:
axis = list(range(x.ndim))
elif isinstance(axis, int):
Expand Down

0 comments on commit 3f04ef1

Please sign in to comment.