From 16fe5cdc4f39aca0f8b80fe630ce6c978fd3b578 Mon Sep 17 00:00:00 2001 From: Jaskirat Singh Date: Wed, 13 Sep 2023 23:02:59 +0530 Subject: [PATCH] Update stat.py --- ivy/functional/frontends/paddle/stat.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ivy/functional/frontends/paddle/stat.py b/ivy/functional/frontends/paddle/stat.py index 990fac8d4854d..1a988ba9ee747 100644 --- a/ivy/functional/frontends/paddle/stat.py +++ b/ivy/functional/frontends/paddle/stat.py @@ -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 @@ -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)