Skip to content

Commit 5aa127e

Browse files
NXP backend: Return number of Neutron nodes in exception (#13126)
### Summary Return number of Neutron nodes in exception. Co-authored-by: Roman Janik <[email protected]>
1 parent e032ca3 commit 5aa127e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

backends/nxp/neutron_node_extraction.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def extract_artifacts_from_neutron_node(
4545

4646
if sub_graph.OperatorsLength() == 0:
4747
raise RuntimeError(
48-
"Model converted with neutron-converter has `0` operators instead of `1`."
48+
"Model converted with neutron-converter has `0` operators instead of `1`.",
49+
sub_graph.OperatorsLength(),
4950
)
5051
elif sub_graph.OperatorsLength() > 1:
5152
builtin_operators_map: dict[int, str] = {
@@ -61,7 +62,8 @@ def extract_artifacts_from_neutron_node(
6162

6263
raise RuntimeError(
6364
f"Model converted with neutron-converter has `{sub_graph.OperatorsLength()}` operators "
64-
f'instead of `1`. Operators found: {", ".join(ops_found)}.'
65+
f'instead of `1`. Operators found: {", ".join(ops_found)}.',
66+
sub_graph.OperatorsLength(),
6567
)
6668

6769
neutron_node = None

0 commit comments

Comments
 (0)