From 51652bfe3279202cd29a43dd724f9724207a641e Mon Sep 17 00:00:00 2001 From: Weixing Zhang Date: Tue, 24 Mar 2020 16:55:33 +0000 Subject: [PATCH] fix build error --- onnxruntime/core/providers/cuda/tensor/upsample.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/providers/cuda/tensor/upsample.cc b/onnxruntime/core/providers/cuda/tensor/upsample.cc index 0d8c4f4515fac..cf06a2d48b851 100644 --- a/onnxruntime/core/providers/cuda/tensor/upsample.cc +++ b/onnxruntime/core/providers/cuda/tensor/upsample.cc @@ -60,7 +60,7 @@ Status Upsample::BaseCompute(OpKernelContext* context, TensorPitches output_pitches(output_dims); TArray output_div_pitches(rank); - for (size_t i = 0; i < rank; ++i) { + for (auto i = 0; i < rank; ++i) { output_div_pitches[i] = fast_divmod(gsl::narrow_cast(output_pitches[i])); } size_t output_count = Y->Shape().Size();