Skip to content

Commit

Permalink
adding numpy to the integration tests (#28831)
Browse files Browse the repository at this point in the history
  • Loading branch information
YushaArif99 authored Oct 1, 2024
1 parent 264dbaf commit eb7acb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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

0 comments on commit eb7acb4

Please sign in to comment.