We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b219406 commit 17a6004Copy full SHA for 17a6004
backends/nxp/backend/ir/converter/node_converter.py
@@ -132,13 +132,8 @@ def _has_shared_q_params_if_quantized(node: Node) -> bool:
132
# Some exotic operator (only consumer or only produces)
133
return True
134
135
- pre_node = node.prev
136
- post_node = node.next
137
-
138
- if pre_node.name == node.all_input_nodes[0] and post_node.name == node.users[0]:
139
- raise RuntimeError(
140
- "Prev & next nodes are not the same as inputs and outputs."
141
- )
+ pre_node = node.all_input_nodes[0]
+ post_node = list(node.users)[0]
142
143
if _is_dequant_node(pre_node) and _is_quant_node(post_node):
144
# Node is quantized
0 commit comments