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 Frontend Failing Test: torch - linalg.torch.linalg.norm #27985

Closed
shruzki opened this issue Jan 22, 2024 · 0 comments · Fixed by #28106
Closed

Fix Frontend Failing Test: torch - linalg.torch.linalg.norm #27985

shruzki opened this issue Jan 22, 2024 · 0 comments · Fixed by #28106
Labels
Sub Task a sub task which is stemming from a ToDo list issue

Comments

@shruzki
Copy link
Contributor

shruzki commented Jan 22, 2024

Example of failed tests:

==================================================================================== 20.0% of 5 passed ====================================================================================================================================================================== short test summary info ==================================================================================
FAILED ivy_tests/test_ivy/test_frontends/test_torch/test_linalg.py::test_torch_norm[cpu-jax-False-False] - ivy.utils.exceptions.IvyValueError: jax: matrix_norm: Invalid axis values ((0, 1, 2)) for jnp.linalg.norm.
FAILED ivy_tests/test_ivy/test_frontends/test_torch/test_linalg.py::test_torch_norm[cpu-tensorflow-False-False] - ivy.utils.exceptions.IvyValueError: tensorflow: matrix_norm: 'axis' must be None, an integer, or a tuple of 2 unique integers, got (0, 1, 2)
FAILED ivy_tests/test_ivy/test_frontends/test_torch/test_linalg.py::test_torch_norm[cpu-torch-False-False] - ivy.utils.exceptions.IvyBackendException: torch: matrix_norm: linalg.matrix_norm: dim must be a 2-tuple. Got 0 1 2
FAILED ivy_tests/test_ivy/test_frontends/test_torch/test_linalg.py::test_torch_norm[cpu-paddle-False-False] - RuntimeError: linalg.norm: If dim is specified, it must be of length 1 or 2. Got [0, 1, 2]

Issue: torch.linalg.norm can take axis of length 1 or 2 (in addition to None). Test allows for axis of length upto 5.

@shruzki shruzki added the Sub Task a sub task which is stemming from a ToDo list issue label Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sub Task a sub task which is stemming from a ToDo list issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant