onnxruntime/js/web/lib
Yulong Wang 451c02543a
[js/webgpu] allow specify preferredLayout (#17756)
### Description
Allow WebGPU backend to specify `preferredLayout`. Default is NHWC.

```js
const options = {executionProviders: [{name:'webgpu', preferredLayout: 'NCHW'}]};
sess1 = await ort.InferenceSession.create('./mobilenetv2-12.onnx', options);
```

### Motivation and Context
- implement @qjia7's requirement for an easier way to do performance
comparison between NCHW vs NHWC.
- It's possible that NCHW does better on some models and NHWC on others.
So offer user the capability to switch.
2023-10-02 21:25:12 -07:00
..
onnxjs Add training interfaces to js/common (#17333) 2023-09-29 19:05:10 -07:00
wasm [js/webgpu] allow specify preferredLayout (#17756) 2023-10-02 21:25:12 -07:00
backend-onnxjs.ts Add training interfaces to js/common (#17333) 2023-09-29 19:05:10 -07:00
backend-wasm.ts Add training interfaces to js/common (#17333) 2023-09-29 19:05:10 -07:00
build-def.d.ts [js/web] WebGPU backend via JSEP (#14579) 2023-04-24 15:21:18 -07:00
index.ts [js/api] introducing IO binding for tensor (#16452) 2023-08-29 12:58:26 -07:00
version.ts Bump Up Version to 1.17.0 (#17587) 2023-09-20 11:02:58 +08:00