onnxruntime/js/web/lib/wasm/jsep/webgpu
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
..
ops [Web/JS] Added Expand operator support. (#16577) 2023-07-11 09:38:16 -07:00
attribute-with-cache-key.ts
gpu-data-manager.ts [js/webgpu] reuse buffer for GpuDataManager (#16746) 2023-07-21 13:13:01 -07:00
op-resolve-rules.ts [Web/JS] Added Expand operator support. (#16577) 2023-07-11 09:38:16 -07:00
program-manager.ts
types.ts [js/web] [JSEP] allow passing data in kernel compute (#16621) 2023-07-07 14:27:30 -07:00