onnxruntime/js/web/lib/wasm/jsep
Enrico Galli 1cb5ceedf3
[WebNN EP] Fix issues with MLTensor caching (#22701)
This PR fixes a bug that occurs when searching for compatible `MLTensor`
in the cache. We were missing checking the number of dimensions in the
shape. This would mean that a cached buffer of shape `[1]` could match
for `[1, 1, 256, 256]`.

This PR also adds better handling when attempting to force an `MLTensor`
to a different shape.
2024-11-06 09:17:11 -08:00
..
webgpu [js/webgpu] Destroy staging buffers aggressively during weights uploading (#22726) 2024-11-06 08:55:15 -08:00
webnn [WebNN EP] Fix issues with MLTensor caching (#22701) 2024-11-06 09:17:11 -08:00
backend-webgpu.ts Clears GPU Cache when there are no more active sessions (#22490) 2024-10-23 22:22:57 -07:00
backend-webnn.ts [WebNN EP] Add cache for MLContexts in the WebNNBackend (#22510) 2024-10-30 10:26:33 -07:00
init.ts [JS/WebGPU] Support WASM64 (#21836) 2024-10-24 20:21:51 -07:00
log.ts [js] change default formatter for JavaScript/TypeScript from clang-format to Prettier (#21728) 2024-08-14 16:51:22 -07:00
tensor-view.ts [js/webgpu] support float16 for Clip (#21584) 2024-08-28 13:19:20 -07:00
util.ts [JS/WebGPU] Support WASM64 (#21836) 2024-10-24 20:21:51 -07:00