From 192caee81f8505653b1616d899ac01beb641ee90 Mon Sep 17 00:00:00 2001 From: Numfor Tiapo Date: Fri, 3 Nov 2023 10:16:37 -0700 Subject: [PATCH] Fix Signed Mismatch (#18258) This PR fixes the the signed mismatch warning in DmlRuntimeFusedGraphKernel. This warning is treated as an error on the x86 versions of our internal builds preventing us from updating to latest ORT. --- .../DmlExecutionProvider/src/DmlRuntimeFusedGraphKernel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/DmlRuntimeFusedGraphKernel.cpp b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/DmlRuntimeFusedGraphKernel.cpp index 1db22ac92e..5c7b7bff1e 100644 --- a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/DmlRuntimeFusedGraphKernel.cpp +++ b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/DmlRuntimeFusedGraphKernel.cpp @@ -93,7 +93,7 @@ namespace Dml onnxruntime::Status Compute(onnxruntime::OpKernelContext* kernelContext) const override { - ORT_THROW_HR_IF(E_UNEXPECTED, m_subgraphInputs.size() != kernelContext->InputCount()); + ORT_THROW_HR_IF(E_UNEXPECTED, static_cast(m_subgraphInputs.size()) != kernelContext->InputCount()); bool recompileNeeded = m_compiledExecutionPlanOperator == nullptr; @@ -159,7 +159,7 @@ namespace Dml if (iter != m_inferredInputShapes.end()) { auto tensorShape = *nodeArg->Shape(); - ORT_THROW_HR_IF(E_UNEXPECTED, tensorShape.dim_size() != iter->second.NumDimensions()); + ORT_THROW_HR_IF(E_UNEXPECTED, tensorShape.dim_size() != static_cast(iter->second.NumDimensions())); for (int i = 0; i < tensorShape.dim_size(); ++i) {