From 3f37609994c12d3eb6328c80843cb80a541aeddf Mon Sep 17 00:00:00 2001 From: Yi-Hong Lyu Date: Tue, 15 Feb 2022 04:32:53 +0800 Subject: [PATCH] Remove unneeded code in UpsampleBilinear (#10544) --- onnxruntime/core/providers/cpu/tensor/upsample.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/onnxruntime/core/providers/cpu/tensor/upsample.cc b/onnxruntime/core/providers/cpu/tensor/upsample.cc index 81ac2cd325..61e4d28cf0 100644 --- a/onnxruntime/core/providers/cpu/tensor/upsample.cc +++ b/onnxruntime/core/providers/cpu/tensor/upsample.cc @@ -571,8 +571,6 @@ void UpsampleBilinear(int64_t batch_size, p.dx1[x] * p.dy1[y] * X22); } } - Xdata += input_height * input_width; - Ydata += output_width * output_height; }); } }