We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46f6346 commit 156fc4dCopy full SHA for 156fc4d
onnxoptimizer/passes/fuse_bn_into_conv.h
@@ -127,7 +127,7 @@ struct FuseBNIntoConv final : public PredicateBasedPass {
127
for (int i = 1; i < conv_W.sizes().size(); ++i) {
128
insert_dims.push_back(i);
129
}
130
- if (getOpsetVersion(graph) > 11) {
+ if (getOpsetVersion(graph) >= 13) {
131
Tensor shape_s_t;
132
shape_s_t.elem_type() = ONNX_NAMESPACE::TensorProto_DataType_INT64;
133
shape_s_t.sizes().push_back(insert_dims.size());
0 commit comments