Skip to content

Commit

Permalink
Issue ivy-llc#26495 (index_sample for Paddle)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksbharaj authored Oct 7, 2023
1 parent 373b033 commit 70f9830
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ivy/functional/frontends/paddle/tensor/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,10 @@ def numpy(self):
def nonzero(self):
return paddle_frontend.nonzero(self)

@with_unsupported_dtypes({"2.5.1 and below": ("int32", "int64", "bfloat16", "float16", "float32", "float64")}, "paddle")
def index_sample(self, index):
return paddle_frontend.index_sample(self, index)

@with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle")
def inner(self, y, name=None):
return paddle_frontend.inner(self, y, name)
Expand Down

0 comments on commit 70f9830

Please sign in to comment.