Skip to content

Commit

Permalink
Update manipulation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
OkeyAmy authored Aug 16, 2023
1 parent 51996a3 commit 9446cd3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ivy/functional/frontends/paddle/tensor/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,14 @@ def take_along_axis(arr, indices, axis):
@to_ivy_arrays_and_back
def rot90(x, k=1, axes=(0, 1), name=None):
return ivy.rot90(x, k=k, axes=axes)


@with_supported_dtypes(
{
"2.5.0 and below": ("float32", "float64", "int32", "int64", "bool")
},
"paddle",
)
@to_ivy_arrays_and_back
def resharp_(x, shape, name=None):
return ivy.reshape(x, shape, name=name)

0 comments on commit 9446cd3

Please sign in to comment.