diff --git a/tensorflow/core/grappler/optimizers/mkl_remapper_test.cc b/tensorflow/core/grappler/optimizers/mkl_remapper_test.cc index fe4c4a9b5cee80..27623c4c558963 100644 --- a/tensorflow/core/grappler/optimizers/mkl_remapper_test.cc +++ b/tensorflow/core/grappler/optimizers/mkl_remapper_test.cc @@ -969,6 +969,7 @@ TEST_F(MklFusedBatchMatMul, MulAndAdd) { } TEST_F(MklFusedBatchMatMul, MulAndAdd2) { + if (!IsMKLEnabled()) GTEST_SKIP() << "Test only applicable to oneDNN."; for (const auto adjx : {false, true}) for (const auto adjy : {false, true}) { this->VerifyPreceedingScalarMul(adjx, adjy);