onnxruntime/js/web/lib/wasm
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
..
binding [js/webgpu] support IO binding (#17480) 2023-09-29 11:24:42 -07:00
jsep [JS/WebGPU] support Range operator (#17233) 2023-09-30 02:05:32 -07:00
proxy-worker [js/webgpu] support proxy for webgpu (#15851) 2023-05-15 16:23:13 -07:00
proxy-messages.ts [js/webgpu] support IO binding (#17480) 2023-09-29 11:24:42 -07:00
proxy-wrapper.ts [js/webgpu] support IO binding (#17480) 2023-09-29 11:24:42 -07:00
run-options.ts [js/web] enable ONNX Runtime Web error messages in JS (#16335) 2023-06-15 09:45:41 -07:00
session-handler.ts Add training interfaces to js/common (#17333) 2023-09-29 19:05:10 -07:00
session-options.ts [js/webgpu] allow specify preferredLayout (#17756) 2023-10-02 21:25:12 -07:00
wasm-common.ts [js/webgpu] support IO binding (#17480) 2023-09-29 11:24:42 -07:00
wasm-core-impl.ts [js/webgpu] support IO binding (#17480) 2023-09-29 11:24:42 -07:00
wasm-factory.ts
wasm-utils.ts [js/web] enable ONNX Runtime Web error messages in JS (#16335) 2023-06-15 09:45:41 -07:00