Skip to content

Commit 156fc4d

Browse files
committed
fix wrong unsqueeze on opset 12
Signed-off-by: daquexian <[email protected]>
1 parent 46f6346 commit 156fc4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxoptimizer/passes/fuse_bn_into_conv.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ struct FuseBNIntoConv final : public PredicateBasedPass {
127127
for (int i = 1; i < conv_W.sizes().size(); ++i) {
128128
insert_dims.push_back(i);
129129
}
130-
if (getOpsetVersion(graph) > 11) {
130+
if (getOpsetVersion(graph) >= 13) {
131131
Tensor shape_s_t;
132132
shape_s_t.elem_type() = ONNX_NAMESPACE::TensorProto_DataType_INT64;
133133
shape_s_t.sizes().push_back(insert_dims.size());

0 commit comments

Comments
 (0)