Padd node: inversion of X and Y dimensions during resize
Aidge version
aidge_core
: branch dev, commit 2edd547d046a96040714bc113bac9bda89bf70d7
aidge_backend_cpu
: branch main, commit d1114932
aidge_onnx
: branch main, commit 3dc5cdb900e5e369e858ebcaea197f429b8e923a
Problem description
In the attached example, X and Y dimensions are reversed during resize (in Padd node).
Input image dims: C=3, Y=192, X=256 PADD=1,1,1,1
Example
model.onnx issue.py ConvImpl.cpp log.txt
Just bellow, extract from log of input data before padd operator and after.
{
{
{
{ 6.000000, 120.000000, 64.000000, -6.000000, 2.000000, 59.000000, 3.000000, -41.000000, -108.000000, 105.000000, -8.000000, -106.000000, -53.000000, 0.000000, 101.000000, 7.000000, 17.000000, 40.000000, 17.000000, -88.000000, -58.000000, -96.000000, 55.000000, -58.000000, -125.000000, 101.000000, 112.000000, 108.000000, 39.000000, 18.000000, -39.000000, 51.000000, 97.000000, -128.000000, 67.000000, 8.000000, -36.000000, -27.000000, -80.000000, -46.000000, 31.000000, -76.000000, 13.000000, 79.000000, 6.000000, -11.000000, -4.000000, 60.000000, -70.000000, 74.000000, -36.000000, -18.000000, -50.000000, 83.000000, -84.000000, 35.000000, 32.000000, 102.000000, -48.000000, -99.000000, 79.000000, 66.000000, 10.000000, -109.000000, -75.000000, 56.000000, 81.000000, -93.000000, -28.000000, 76.000000, -118.000000, 9.000000, -48.000000, 24.000000, -48.000000, 37.000000, -3.000000, 49.000000, -76.000000, -15.000000, 63.000000, 26.000000, 122.000000, 40.000000, 35.000000, 64.000000, -21.000000, -118.000000, 126.000000, -104.000000, -117.000000, 58.000000, 76.000000, 50.000000, 62.000000, -69.000000, -122.000000, 65.000000, -29.000000, 5.000000, 124.000000, 119.000000, 108.000000, 2.000000, -53.000000, 105.000000, -24.000000, -126.000000, -46.000000, -96.000000, -35.000000, -61.000000, -44.000000, -94.000000, -30.000000, 6.000000, 6.000000, 15.000000, -8.000000, -102.000000, 66.000000, 81.000000, -86.000000, -121.000000, 95.000000, 18.000000, -86.000000, -100.000000, 83.000000, -99.000000, 7.000000, -53.000000, -120.000000, -128.000000, -125.000000, 60.000000, -83.000000, 13.000000, -47.000000, -47.000000, 70.000000, -26.000000, -127.000000, -42.000000, 103.000000, 100.000000, 126.000000, 13.000000, -26.000000, -112.000000, 74.000000, 37.000000, 122.000000, -48.000000, -67.000000, -32.000000, -90.000000, -71.000000, 74.000000, 101.000000, 101.000000, -80.000000, 3.000000, -94.000000, 88.000000, 53.000000, -4.000000, -52.000000, -27.000000, -34.000000, -114.000000, -105.000000, 104.000000, 50.000000, -124.000000, -31.000000, -108.000000, 24.000000, 65.000000, 34.000000, -49.000000, -17.000000, -98.000000, 94.000000, 39.000000, 103.000000, -4.000000, -46.000000, -96.000000, 3.000000, -70.000000, -25.000000, -97.000000, -41.000000, -128.000000, 103.000000, 66.000000, 27.000000, -81.000000, 30.000000, 24.000000, 111.000000, 16.000000, -44.000000, 62.000000, 104.000000, -110.000000, -93.000000, -34.000000, -59.000000, 42.000000, -26.000000, -29.000000, 73.000000, 78.000000, 53.000000, 7.000000, -82.000000, -32.000000, -85.000000, 42.000000, 38.000000, 82.000000, -104.000000, -82.000000, -56.000000, -59.000000, 38.000000, 60.000000, 89.000000, 118.000000, -7.000000, 54.000000, -20.000000, -108.000000, -30.000000, 68.000000, -60.000000, 121.000000, -96.000000, -67.000000, 97.000000, -115.000000, -65.000000, -1.000000, 41.000000, 13.000000, -68.000000, -66.000000, 53.000000, 101.000000, 116.000000, 118.000000, 5.000000, -30.000000, -102.000000},
data input0:
{
{
{
{ 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 6.000000, 120.000000, 64.000000, -6.000000, 2.000000, 59.000000, 3.000000, -41.000000, -108.000000, 105.000000, -8.000000, -106.000000, -53.000000, 0.000000, 101.000000, 7.000000, 17.000000, 40.000000, 17.000000, -88.000000, -58.000000, -96.000000, 55.000000, -58.000000, -125.000000, 101.000000, 112.000000, 108.000000, 39.000000, 18.000000, -39.000000, 51.000000, 97.000000, -128.000000, 67.000000, 8.000000, -36.000000, -27.000000, -80.000000, -46.000000, 31.000000, -76.000000, 13.000000, 79.000000, 6.000000, -11.000000, -4.000000, 60.000000, -70.000000, 74.000000, -36.000000, -18.000000, -50.000000, 83.000000, -84.000000, 35.000000, 32.000000, 102.000000, -48.000000, -99.000000, 79.000000, 66.000000, 10.000000},
Edited by RAPHAEL MILLET