@@ -984,23 +984,23 @@ def verify_layer_info(
984
984
for idx , info in dynapcnn_layer_info .items ():
985
985
if not "conv" in info :
986
986
raise InvalidGraphStructure (
987
- f"DynapCNN layer { idx } has no weight assigned, which should "
988
- "never happen. " + default_invalid_structure_string
987
+ f"DynapCNN layer { idx } has no weight assigned. "
988
+ + default_invalid_structure_string
989
989
)
990
990
if not "neuron" in info :
991
991
raise InvalidGraphStructure (
992
- f"DynapCNN layer { idx } has no spiking layer assigned, which "
993
- "should never happen. " + default_invalid_structure_string
992
+ f"DynapCNN layer { idx } has no spiking layer assigned. "
993
+ + default_invalid_structure_string
994
994
)
995
995
if not "destinations" in info :
996
996
raise InvalidGraphStructure (
997
- f"DynapCNN layer { idx } has no destination info assigned, which "
998
- "should never happen. " + default_invalid_structure_string
997
+ f"DynapCNN layer { idx } has no destination info assigned. "
998
+ + default_invalid_structure_string
999
999
)
1000
1000
if edge_counts is not None :
1001
1001
# Make sure there are as many layers as edges from weight to neuron
1002
1002
if edge_counts .get ("weight-neuron" , 0 ) - len (dynapcnn_layer_info ) > 0 :
1003
1003
raise InvalidGraphStructure (
1004
- "Not all weight-to-neuron edges have been processed, which "
1005
- "should never happen. " + default_invalid_structure_string
1004
+ "Not all weight-to-neuron edges have been processed. "
1005
+ + default_invalid_structure_string
1006
1006
)
0 commit comments