Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: skip tensorflow.zeros tests for Paddle backend with ndim >= 10 #23156

Merged
merged 2 commits into from
Mar 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from hypothesis import strategies as st, assume
import numpy as np
from tensorflow import errors as tf_errors
import ivy

# local
import ivy_tests.test_ivy.helpers as helpers
Expand Down Expand Up @@ -2397,6 +2398,9 @@ def test_tensorflow_zeros(
fn_tree,
on_device,
):
if ivy.current_backend_str() == "paddle":
# Paddle only supports ndim from 0 to 9
assume(input.shape[0] < 10)
helpers.test_frontend_function(
shape=input,
input_dtypes=dtype,
Expand All @@ -2412,7 +2416,7 @@ def test_tensorflow_zeros(
@handle_frontend_test(
fn_tree="tensorflow.zeros_like",
dtype_and_x=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("numeric")
available_dtypes=helpers.get_dtypes("numeric"),
),
dtype=helpers.get_dtypes("numeric", full=False),
test_with_out=st.just(False),
Expand Down
Loading