onnxruntime/js/web/lib/wasm/jsep
Jiajia Qin 193415a162
[js/webgpu] reuse buffer for GpuDataManager (#16746)
### Description
<!-- Describe your changes. -->
Allocating new GPUBuffer in every session.run is not efficient. We
should make it only happen in the first run. In the following runs, we
should try to reuse those buffers.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
- This PR is for performance.
See mobilenetv2 becomes 9.58 ms from 12.9 ms.
2023-07-21 13:13:01 -07:00
..
webgpu [js/webgpu] reuse buffer for GpuDataManager (#16746) 2023-07-21 13:13:01 -07:00
backend-webgpu.ts [js/webgpu] fix RangeError in buffer download (#16165) 2023-05-30 15:04:50 -07:00
init.ts [js/web] [JSEP] allow passing data in kernel compute (#16621) 2023-07-07 14:27:30 -07:00
log.ts
tensor.ts [js/web] Added Reduce operators support (#16122) 2023-06-12 07:46:27 -07:00
util.ts [js/webgpu] allow 0 sized tensor for tensor view (#16540) 2023-06-30 12:05:04 -07:00