When performing shift on empty dimensions(i.e. where dimensions are [3 1 3 1]) the shift function breaks and returns incorrect results. This bug was introduced with the memcpy optimization changes because of the dimension reordering.
Description
The JIT preconfiguration steps are broken because of the way we reorder the dimensions for the shift node.
Reproducible Code and/or Steps
void test_shift(int ia=1,int ib=3){
array a=iota(dim4(ia,ib));
af_print(a);
af_print(shift(a,-1));
af_print(shift(a,1));
af_print(shift(a,0,-1));
af_print(shift(a,0,1));
}
System Information
N/A
Checklist
When performing shift on empty dimensions(i.e. where dimensions are [3 1 3 1]) the shift function breaks and returns incorrect results. This bug was introduced with the memcpy optimization changes because of the dimension reordering.
Description
The JIT preconfiguration steps are broken because of the way we reorder the dimensions for the shift node.
Reproducible Code and/or Steps
System Information
N/A
Checklist