Skip to content

Commit

Permalink
added zero pad
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudAshraf97 committed Mar 24, 2023
1 parent 69cb70c commit 7b226a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ivy/functional/backends/paddle/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ def zero_pad(
*,
out: Optional[paddle.Tensor] = None,
):
raise IvyNotImplementedException()
with ivy.ArrayMode(False):
return constant_pad(x, pad_width=pad_width, value=0)


@with_unsupported_device_and_dtypes(
Expand Down

0 comments on commit 7b226a7

Please sign in to comment.