From 7de86d39d3bc17b552b0fd1cd585e9755f66311b Mon Sep 17 00:00:00 2001 From: Dwayne Robinson Date: Mon, 21 Feb 2022 22:00:48 -0800 Subject: [PATCH] Build error int to bool --- .../core/providers/dml/OperatorAuthorHelper/OperatorHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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