mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-31 23:27:43 +00:00
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.
This commit is contained in:
parent
e207060ac9
commit
192caee81f
1 changed files with 2 additions and 2 deletions
|
|
@ -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<ptrdiff_t>(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<ptrdiff_t>(iter->second.NumDimensions()));
|
||||
|
||||
for (int i = 0; i < tensorShape.dim_size(); ++i)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue