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

adding numpy to the integration tests #28831

Merged
merged 3 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target : [ jax, tensorflow ]
target : [ jax, numpy, tensorflow ]
steps:
- name: Checkout Ivy 🛎
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion ivy_tests/test_integrations/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
jax.config.update("jax_enable_x64", True)

jax_kornia = ivy.transpile(kornia, source="torch", target="jax")
# np_kornia = ivy.transpile(kornia, source="torch", target="numpy")
np_kornia = ivy.transpile(kornia, source="torch", target="numpy")
tf_kornia = ivy.transpile(kornia, source="torch", target="tensorflow")


Expand Down
5 changes: 4 additions & 1 deletion ivy_tests/test_integrations/test_kornia.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from helpers import _test_function
import kornia
import torch

import pytest

def test_rgb_to_grayscale(target_framework, backend_compile):
trace_args = (torch.rand(1, 3, 4, 4),)
Expand Down Expand Up @@ -1528,6 +1528,9 @@ def test_determinant_to_polynomial(target_framework, backend_compile):


def test_nms3d(target_framework, backend_compile):
if target_framework == 'numpy':
pytest.skip() # stateful class tests are not supported

trace_args = (
torch.rand(1, 1, 5, 5, 5),
(3, 3, 3),
Expand Down
Loading