onnxruntime/js/web/lib/wasm/jsep/webgpu/ops
Jiajie Hu 3b8b9147fa
[js/webgpu] Mitigate floating point accuracy issue in Resize (#18956)
### Description
The patch fixes a floating point accuracy issue in Resize by preferring
integer indices and integer arithmetic where possible.

### Motivation and Context
Model test `test_resize_upsample_sizes_nearest_floor_align_corners` was
observed to be failing on certain platforms. The root cause is the
inaccurate floating point evaluation of 21 / 7 (2.999... vs 3), which
results in the wrong input element to be indexed (floor(2.999...) vs
floor(3)).
2024-01-03 14:15:26 -08:00
..
3rd-party [js/webgpu] Provide a naive vectorized matmul algorithm (#18758) 2023-12-13 09:03:23 -08:00
argminmax.ts [JS/Web] Added uniforms to Reduce, Resize and Split Ops. (#18727) 2023-12-12 11:12:23 -08:00
attention.ts [js/web] JSEP Attention & MultiHeadAttention (#17742) 2023-11-17 12:23:52 -08:00
batch-norm.ts [js/webgpu] Add BatchNormalization Op (#18468) 2023-11-22 15:58:06 -08:00
bias-add.ts [js/webgpu] revise uniform support (#17871) 2023-10-11 16:41:46 -07:00
bias-split-gelu.ts [JS/Web] Resize & BiasSplitGelu fp16 support (#18536) 2023-11-22 12:12:07 -08:00
binary-op.ts [js/webgpu] Optimize broadcast binary. (#18185) 2023-11-20 16:52:17 -08:00
common.ts [js/webgpu] only declare shape and strides in shader when necessary (#18940) 2023-12-28 15:43:08 -08:00
concat.ts [js/webgpu] Add uniforms support to concat op (#18238) 2023-11-10 13:46:03 -08:00
conv-grouped.ts [js/webgpu] Fix conv2d with activation (#18388) 2023-11-10 12:54:35 -08:00
conv-transpose.ts [js/webgpu] Use the naive convTranspose when in/out channels are both 1 (#18658) 2023-12-04 13:18:37 -08:00
conv.ts [js/webgpu] Provide a naive vectorized matmul algorithm (#18758) 2023-12-13 09:03:23 -08:00
cumsum.ts [JS/Web] Added uniforms to Reduce, Resize and Split Ops. (#18727) 2023-12-12 11:12:23 -08:00
einsum.ts [JS/Web] Add uniforms to Einsum (#18531) 2023-11-29 15:30:33 -08:00
expand.ts [js/webgpu] add bool type for Expand/Gather (#18615) 2023-11-30 15:47:08 -08:00
fuse-utils.ts [js/webgpu] Fix conv2d with activation (#18388) 2023-11-10 12:54:35 -08:00
gather-elements.ts [JS/Web] AddedUniforms in GatherElements. (#18670) 2023-12-05 09:19:53 -08:00
gather.ts [js/webgpu] add bool type for Expand/Gather (#18615) 2023-11-30 15:47:08 -08:00
gemm.ts [JS/WebGPU] fix an error in Clip (#18799) 2023-12-19 13:51:01 -08:00
instance-norm.ts [js/webgpu] Optimize NCHW layout for InstanceNormalization (#18123) 2023-12-15 11:26:15 -08:00
layer-norm.ts [js/web] FP16 LayerNorm, InstanceNorm, SkipLayerNorm (#17630) 2023-10-18 10:47:41 -07:00
matmul.ts [js/webgpu] Provide a naive vectorized matmul algorithm (#18758) 2023-12-13 09:03:23 -08:00
multi-head-attentiion.ts [js/web] JSEP Attention & MultiHeadAttention (#17742) 2023-11-17 12:23:52 -08:00
pad.ts [js/web] set noUnusedParameters to true and fix a few bugs (#18404) 2023-11-15 09:16:29 -08:00
pool.ts [js/webgpu] Refactor attributes of pool (#18728) 2023-12-26 17:23:52 -08:00
range.ts [js/webgpu] revise uniform support (#17871) 2023-10-11 16:41:46 -07:00
reduce-shared.ts [JS/WebGPU] fix an error in Clip (#18799) 2023-12-19 13:51:01 -08:00
reduce.ts [JS/Web] Added uniforms to Reduce, Resize and Split Ops. (#18727) 2023-12-12 11:12:23 -08:00
resize.ts [js/webgpu] Mitigate floating point accuracy issue in Resize (#18956) 2024-01-03 14:15:26 -08:00
skip-layer-norm.ts [js/web] FP16 LayerNorm, InstanceNorm, SkipLayerNorm (#17630) 2023-10-18 10:47:41 -07:00
slice.ts [JS/Web] Added uniforms to Reduce, Resize and Split Ops. (#18727) 2023-12-12 11:12:23 -08:00
softmax.ts [JS/WebGPU] fix an error in Clip (#18799) 2023-12-19 13:51:01 -08:00
split.ts [JS/Web] Added uniforms to Reduce, Resize and Split Ops. (#18727) 2023-12-12 11:12:23 -08:00
tile.ts [JS/WebGPU] Added uniforms to Tile and Where Ops (#18768) 2023-12-11 20:58:52 -08:00
transpose.ts [js/webgpu] Fix the transpose error when dims > 4D (#18027) 2023-10-23 11:02:19 -07:00
unary-op.ts [JS/WebGPU] fix an error in Clip (#18799) 2023-12-19 13:51:01 -08:00
where.ts [JS/WebGPU] Added uniforms to Tile and Where Ops (#18768) 2023-12-11 20:58:52 -08:00