From 3697b0f3b67948083875f06e5056fcfa83e6cfc5 Mon Sep 17 00:00:00 2001 From: Rob Suderman Date: Fri, 16 Aug 2024 16:17:31 -0700 Subject: [PATCH] fix build error --- lib/Conversion/TorchOnnxToTorch/DefaultDomainAtoF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Conversion/TorchOnnxToTorch/DefaultDomainAtoF.cpp b/lib/Conversion/TorchOnnxToTorch/DefaultDomainAtoF.cpp index e3c5a7937..0e5f6c409 100644 --- a/lib/Conversion/TorchOnnxToTorch/DefaultDomainAtoF.cpp +++ b/lib/Conversion/TorchOnnxToTorch/DefaultDomainAtoF.cpp @@ -175,7 +175,7 @@ void mlir::torch::onnx_c::populateDefaultDomainAtoF( SmallVector accSqGrads; size_t inputCount = (operands.size() - 2) / 4; - for (int i = 0; i < inputCount; ++i) { + for (size_t i = 0; i < inputCount; ++i) { inputs.push_back(operands[2 + i]); grads.push_back(operands[2 + i + inputCount * 1]); accGrads.push_back(operands[2 + i + inputCount * 2]);