Skip to content

Commit

Permalink
fixed NIRNode import issue #85
Browse files Browse the repository at this point in the history
  • Loading branch information
matjobst committed Mar 27, 2024
1 parent 8af5be2 commit 2ce271e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nir/ir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def dict2NIRNode(data_dict: Dict[str, Any]) -> NIRNode:
"IF",
"LI",
"LIF",
# node
"NIRNode",
# pooling
"AvgPool2d",
"SumPool2d",
Expand Down
4 changes: 4 additions & 0 deletions tests/test_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ def test_has_version():
assert hasattr(nir, "__version__")


def test_has_NIRNode():
assert hasattr(nir, "NIRNode")


def test_eq():
a = nir.Input(np.array([2, 3]))
a2 = nir.Input(np.array([2, 3]))
Expand Down

0 comments on commit 2ce271e

Please sign in to comment.