diff --git a/onnxruntime/core/providers/dml/OperatorAuthorHelper/OperatorHelper.h b/onnxruntime/core/providers/dml/OperatorAuthorHelper/OperatorHelper.h index e9965fb3db..97a593073c 100644 --- a/onnxruntime/core/providers/dml/OperatorAuthorHelper/OperatorHelper.h +++ b/onnxruntime/core/providers/dml/OperatorAuthorHelper/OperatorHelper.h @@ -20,7 +20,9 @@ std::vector BroadcastTensorShape( // e.g. input values = {2,1,3,1,1,5} // value = 1 // output indices = {1,3,4} +#ifndef __clang__ #pragma optimize("", off) +#endif template void FindValueIndices(gsl::span values, T value, /*out*/ std::vector& indices) { indices.clear(); @@ -32,7 +34,9 @@ void FindValueIndices(gsl::span values, T value, /*out*/ std::vector