Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-kidger committed Jul 10, 2023
1 parent 77f0b76 commit bed8e98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 0 additions & 2 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
jaxlib
pytest
beartype
tensorflow
tf2onnx
3 changes: 3 additions & 0 deletions tests/test_onnx.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import jax
import jax.numpy as jnp
import pytest

import equinox.internal as eqxi


# Currently failing due to a bug in tf2onnx
@pytest.mark.skip
def test_onnx_export():
@jax.vmap
def fn(x, y):
Expand Down
6 changes: 3 additions & 3 deletions tests/test_while_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,9 @@ def run(init_carry):
run((1.0, 2.0, jnp.array(3.0), jnp.array(4.0)))
text, _ = capfd.readouterr()
assert (
"symbolic_zero_gradient (True, True, (False, True, False, True, True, True))"
in text
)
"symbolic_zero_gradient "
"(True, True, True, (False, True, False, True, True, True))"
) in text


def test_buffer_index():
Expand Down

0 comments on commit bed8e98

Please sign in to comment.