Currently onnx.js has two co-existence texture layouts -- the one used in existing kernels with unpack implementation and the one
used in newly added kernels with pack implementation.
This change enables pack kernel to pack both texture layouts correctly, with an unified output texture layout. The change covers input texture in 1D, 2D, 3D and 4D.
The corresponding tests are updated to test both cases.
Currently onnx.js has two co-existence texture layouts -- the one used in existing kernels with unpack implementation and the one used in newly added kernels with pack implementation.
This change enables pack kernel to pack both texture layouts correctly, with an unified output texture layout. The change covers input texture in 1D, 2D, 3D and 4D.
The corresponding tests are updated to test both cases.