diff --git a/onnxruntime/test/optimizer/graph_transform_test_layernorm.cc b/onnxruntime/test/optimizer/graph_transform_test_layernorm.cc index 179d4dcfd0..0706040b7d 100755 --- a/onnxruntime/test/optimizer/graph_transform_test_layernorm.cc +++ b/onnxruntime/test/optimizer/graph_transform_test_layernorm.cc @@ -32,6 +32,8 @@ namespace test { #define MODEL_FOLDER ORT_TSTR("testdata/transform/") +#ifndef DISABLE_CONTRIB_OPS + TEST_F(GraphTransformationTests, LayerNormFusionTest) { constexpr const ORTCHAR_T* model_uri = MODEL_FOLDER "fusion/layer_norm.onnx"; std::shared_ptr p_model; @@ -923,5 +925,7 @@ TEST_F(GraphTransformationTests, EmbedLayerNormFusionMultiple_OpSet13) { EmbedLayerNormFusionFormatMultiple(MODEL_FOLDER "fusion/embed_layer_norm_multiple_opset13.onnx", logger_.get()); } +#endif + } // namespace test } // namespace onnxruntime