Small fixes in Resize CPU antialias (#19476)

### Description
Add a comment, pass NCHW = true when setting upsample_antialias

### Motivation and Context
Small bugs.
This commit is contained in:
Dmitri Smirnov 2024-02-09 15:27:04 -08:00 committed by GitHub
parent 90cf03767d
commit 0e984ef0d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -700,7 +700,7 @@ void ResizeBiCubicAntiAlias(int64_t batch_size,
BiCubicParamsAntiAlias<typename AccumulateType<T>::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<T>(p, batch_size, num_channels, input_height, input_width, output_height, output_width,
use_extrapolation, extrapolation_value,