Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions backends/nxp/backend/ir/converter/node_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,8 @@ def _has_shared_q_params_if_quantized(node: Node) -> bool:
# Some exotic operator (only consumer or only produces)
return True

pre_node = node.prev
post_node = node.next

if pre_node.name == node.all_input_nodes[0] and post_node.name == node.users[0]:
raise RuntimeError(
"Prev & next nodes are not the same as inputs and outputs."
)
pre_node = node.all_input_nodes[0]
post_node = list(node.users)[0]

if _is_dequant_node(pre_node) and _is_quant_node(post_node):
# Node is quantized
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def _convert_unpadded_2D(
)

b = self.builder.create_zeros_tensor(
[output_channels], "zero_bias", bias_type, True
[output_channels], "zero_bias", bias_type, False
)

# Compute scale and zero point for bias tensor
Expand Down
Loading