Skip to content

Commit

Permalink
Merged sinabs test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jegp committed Oct 21, 2023
2 parents ec8cded + c7aba27 commit 5845167
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions tests/test_from_nir.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ def test_extract_empty():


def test_extract_illegal_name():
graph = nir.NIRGraph(
{"i": nir.Input(np.ones((1, 1))), "a.b": nir.Linear(np.ones((1, 1)))},
[("i", "a.b")],
)
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 5845167

Please sign in to comment.