Skip to content

Commit

Permalink
fix: Fixed creation ivy.zeros_like failing test for all backends (#…
Browse files Browse the repository at this point in the history
…28032)

Co-authored-by: NripeshN <nripesh14@gmail.com>
  • Loading branch information
vismaysur and NripeshN authored Jan 25, 2024
1 parent 2911896 commit 95af372
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ivy/functional/backends/paddle/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,10 @@ def zeros(
return paddle.zeros(shape=shape).cast(dtype)


@with_unsupported_device_and_dtypes(
{"2.6.0 and below": {"cpu": ("uint8", "int8", "int16", "float16", "bfloat16")}},
backend_version,
)
def zeros_like(
x: paddle.Tensor,
/,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ def test_zeros(*, shape, dtype, test_flags, backend_fw, fn_name, on_device):
min_dim_size=1,
max_dim_size=5,
),
test_gradients=st.just(False),
)
def test_zeros_like(*, dtype_and_x, test_flags, backend_fw, fn_name, on_device):
dtype, x = dtype_and_x
Expand Down

0 comments on commit 95af372

Please sign in to comment.