Skip to content

Commit 728fcda

Browse files
committed
make sure bias is 1D and has size of M
1 parent baa8b1c commit 728fcda

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tf2onnx/optimizer/transpose_optimizer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,6 @@ def _add_handler(self, trans, node):
385385
if len(numpy_val.shape) - numpy_val.shape.count(1) > 1:
386386
self.logger.debug("Bias is not 1D, can not merge Conv and Add")
387387
return self._handle_node_having_branches(node)
388-
389388
bias_size = max(numpy_val.shape)
390389
M = t_p.inputs[1].output_shapes[0][0]
391390
if bias_size != M:

0 commit comments

Comments
 (0)