Skip to content

Commit

Permalink
Update stat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskiratsingh2000 committed Sep 13, 2023
1 parent 17aca2c commit 16fe5cd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ivy/functional/frontends/paddle/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ def std(x, axis=None, unbiased=True, keepdim=False, name=None):
)
return ivy.std(x, axis=axis, correction=int(unbiased), keepdims=keepdim)

@with_supported_dtypes(
{"2.5.1 and below": ("float32", "float64", "int32", "int64")},
"paddle",
)
@to_ivy_arrays_and_back
def quantile(x, q, axis=None, keepdim=False):
return ivy.quantile(x, q, axis=axis, keepdims=keepdim)


@with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle")
@to_ivy_arrays_and_back
Expand All @@ -74,8 +82,3 @@ def var(x, axis=None, unbiased=True, keepdim=False, name=None):
else:
correction = 0
return ivy.var(x, axis=axis, correction=correction, keepdims=keepdim)

@with_supported_dtypes({"2.5.1 and below": ("float32", "float64", "int32", "int64")},"paddle",)
@to_ivy_arrays_and_back
def quantile(x, q, axis=None, keepdim=False):
return ivy.quantile(x, q, axis=axis, keepdims=keepdim)

0 comments on commit 16fe5cd

Please sign in to comment.