onnxruntime
606356d0 - [js/webgpu] Simplify the Resize shader when noScale is true (#18321)

Commit
2 years ago
[js/webgpu] Simplify the Resize shader when noScale is true (#18321) ### Description For Resize, when `noScale` is true, the shader can become very simple, which is not related with `attributes.mode` anymore. So we should remove those parts of shader code for simplification. This PR can also fix #18311 since the `noScale` are all true in that model. However, #18311 also exposes that the Resize implementation for `linear` mode has bug. It seems that the currently implementation always treat the input as either 2d or 4d tensor, however, the actual input is 3d tensor, that's why the shader compilation is failed. We may need to fix it in a separate PR.
Author
Parents
Loading