Skip to content

Commit

Permalink
(WIP): Fix doorbell tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bauerfe committed Nov 8, 2024
1 parent 189cfb8 commit a2bbb4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_dynapcnn/test_doorbell.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
It will include testing of the network equivalence, and of the correct output configuration.
"""

import pytest
import samna
import torch
from nirtorch.utils import sanitize_name
Expand Down Expand Up @@ -76,7 +77,9 @@ def test_same_result():
def test_auto_config():
# - Should give an error with the normal layer ordering
dynapcnn_net = DynapcnnNetwork(snn, input_shape=input_shape, discretize=True)
dynapcnn_net.make_config(chip_layers_ordering=[0, 1, 2, 3, 4])
with pytest.raises(ValueError):
dynapcnn_net.make_config(chip_layers_ordering=[0, 1, 2, 3, 4])
dynapcnn_net.make_config(layer2core_map="auto")


def test_was_copied():
Expand Down

0 comments on commit a2bbb4c

Please sign in to comment.