Skip to content

Commit

Permalink
Update test_stat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskiratsingh2000 authored Sep 13, 2023
1 parent 70c81ed commit b96d8e4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions ivy_tests/test_ivy/test_frontends/test_paddle/test_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,35 @@ def test_paddle_var(
unbiased=unbiased,
keepdim=keepdim,
)

# quantile
@handle_frontend_test(
fn_tree="paddle.quantile",
dtype_and_x=_statistical_dtype_values(function="quantile"),
q=st.floats(0.0, 1.0),
keepdim=st.booleans(),
)
def test_paddle_quantile(
*,
dtype_and_x,
q,
keepdim,
on_device,
fn_tree,
frontend,
backend_fw,
test_flags,
):
input_dtypes, x, axis = dtype_and_x
helpers.test_frontend_function(
input_dtypes=input_dtypes,
frontend=frontend,
backend_to_test=backend_fw,
test_flags=test_flags,
fn_tree=fn_tree,
on_device=on_device,
x=x[0],
q=q,
axis=axis,
keepdim=keepdim,
)

0 comments on commit b96d8e4

Please sign in to comment.