diff --git a/src/Transform/ONNX/ConstProp.cpp b/src/Transform/ONNX/ConstProp.cpp index f36acdd197..cc31b13da5 100644 --- a/src/Transform/ONNX/ConstProp.cpp +++ b/src/Transform/ONNX/ConstProp.cpp @@ -69,7 +69,7 @@ struct ConstPropONNXToONNXPassConfiguration { }; int ConstPropONNXToONNXPassConfiguration::expansionBound = -1; // -1 == no bound -StringSet<> ConstPropONNXToONNXPassConfiguration::disabledPatterns; +StringSet<> ConstPropONNXToONNXPassConfiguration::disabledPatterns = {}; bool ConstPropONNXToONNXPassConfiguration::constantPropIsEnabled = false; // Precondition: result has ranked tensor type with static shape and int or diff --git a/test/mlir/onnx/onnx_hybrid_transform.mlir b/test/mlir/onnx/onnx_hybrid_transform.mlir index a1ad2b538f..7962e8e1c0 100644 --- a/test/mlir/onnx/onnx_hybrid_transform.mlir +++ b/test/mlir/onnx/onnx_hybrid_transform.mlir @@ -1,5 +1,5 @@ -// RUN: onnx-mlir-opt -onnx-hybrid-transform=constant-propagation=false %s | FileCheck %s -// RUN: onnx-mlir-opt -onnx-hybrid-transform %s | FileCheck --check-prefix=CONSTPROP %s +// RUN: onnx-mlir-opt --enable-constant-prop=true -onnx-hybrid-transform=constant-propagation=false %s | FileCheck %s +// RUN: onnx-mlir-opt --enable-constant-prop=true -onnx-hybrid-transform %s | FileCheck --check-prefix=CONSTPROP %s // Illustrates the back and forth between shape inference and the // BinaryOpBroadcastAxisPattern canonicalization pattern: