Skip to content

Commit

Permalink
Fix tests (#22)
Browse files Browse the repository at this point in the history
* Used bleeding edge of sinabs for tests

Closes #21
  • Loading branch information
Jegp authored Oct 21, 2023
1 parent dc1d6aa commit c7aba27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_from_nir.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def test_extract_empty():


def test_extract_illegal_name():
graph = nir.NIRGraph({"a.b": nir.Input(np.ones(1))}, [])
graph = nir.NIRGraph({"a.b": nir.Input(np.ones(1)), "a.c": nir.Linear(np.array([[1.]]))}, [("a.b", "a.c")])
torch_graph = load(graph, _torch_model_map)
assert "a_b" in torch_graph._modules
assert "a_c" in torch_graph._modules


def test_extract_lin():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ torch
nir
ruff
git+https://github.com/norse/norse
sinabs
git+https://github.com/synsense/sinabs@dev/nir

0 comments on commit c7aba27

Please sign in to comment.