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 tests #22

Merged
merged 4 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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