diff --git a/onnxruntime/core/providers/dml/OperatorAuthorHelper/OperatorHelper.cpp b/onnxruntime/core/providers/dml/OperatorAuthorHelper/OperatorHelper.cpp index 646d1d7a96..efe5d3f4a1 100644 --- a/onnxruntime/core/providers/dml/OperatorAuthorHelper/OperatorHelper.cpp +++ b/onnxruntime/core/providers/dml/OperatorAuthorHelper/OperatorHelper.cpp @@ -1142,7 +1142,7 @@ namespace OperatorHelper std::vector inputShape = shapeInformation.GetInputTensorShape(0); HandleNegativeAxes(/*inout*/ m_axes, gsl::narrow_cast(inputShape.size())); - HandleEmptyAxes(/*inout*/ m_axes, inputShape, m_noopWithEmptyAxes); + HandleEmptyAxes(/*inout*/ m_axes, inputShape, bool(m_noopWithEmptyAxes)); } std::vector ReduceHelperBase::GetOutputShapes(const MLShapeInferenceContext& shapeInfo) const