Skip to content

Commit b50878d

Browse files
tianleiwuChangming Sun
authored andcommitted
Disable Attention fusion tests when DISABLE_CONTRIB_OPS is defined (#2529)
1 parent e32eff8 commit b50878d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

onnxruntime/test/optimizer/graph_transform_test.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,8 @@ TEST(GraphTransformationTests, ReshapeFusionOneConstTest) {
929929
}
930930
}
931931

932+
#ifndef DISABLE_CONTRIB_OPS
933+
932934
static void ValidateAttention(Graph& graph) {
933935
// Validate the merged weights (initializer) input for Attention node.
934936
for (const Node& node : graph.Nodes()) {
@@ -1089,7 +1091,6 @@ TEST(GraphTransformationTests, AttentionFusionInt64Test) {
10891091
ValidateAttention(graph);
10901092
}
10911093

1092-
#ifndef DISABLE_CONTRIB_OPS
10931094
TEST(GraphTransformationTests, GeluFusionTest) {
10941095
auto model_uri = MODEL_FOLDER "fusion/gelu.onnx";
10951096
std::shared_ptr<Model> p_model;

0 commit comments

Comments
 (0)