From 0e984ef0d1c41cbc54a453f6de0c5e8784df5e74 Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Fri, 9 Feb 2024 15:27:04 -0800 Subject: [PATCH] Small fixes in Resize CPU antialias (#19476) ### Description Add a comment, pass NCHW = true when setting upsample_antialias ### Motivation and Context Small bugs. --- onnxruntime/core/providers/cpu/tensor/upsample_antialias.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/providers/cpu/tensor/upsample_antialias.h b/onnxruntime/core/providers/cpu/tensor/upsample_antialias.h index 59b512def619d..e1dcaf500a325 100644 --- a/onnxruntime/core/providers/cpu/tensor/upsample_antialias.h +++ b/onnxruntime/core/providers/cpu/tensor/upsample_antialias.h @@ -700,7 +700,7 @@ void ResizeBiCubicAntiAlias(int64_t batch_size, BiCubicParamsAntiAlias::type> p; p.cubic_coeff_a = cubic_coeff_a; SetupUpsampleFilterAntiAlias(p, input_paras, output_paras, scale_paras, roi, - alloc, get_original_coordinate, exclude_outside, false); + alloc, get_original_coordinate, exclude_outside, true); return UpsampleBaseAntiAlias(p, batch_size, num_channels, input_height, input_width, output_height, output_width, use_extrapolation, extrapolation_value,