onnxruntime/js/web/lib
Jiajia Qin d226e40856
[js/webgpu] set query type in onRunStart (#19202)
### Description
<!-- Describe your changes. -->
`env.webgpu.profiling` is a global flag. It may change before each
session.run. So the best place is to update it in `onRunStart` event.
After this, we can directly check `this.queryType`'s value. Without this
pr, we need to make sure that `getCommandEncoder()` is called before
checking `this.queryType`. Otherwise, it may happen that
`pendingKernels`'s length is not equal to `pendingDispatchNumber`'s
length. See the two ugly workarounds
[1)](e630dbf528 (diff-006fc84d3997f96a29b8033bd2075d6a0a9509211bd5812a6b934fc74fedfd9dR267-R268))
and
[2)](e630dbf528 (diff-618fe297fbe7a1da586380163b8fd2627311ccc217640a3c5cdc9c17a33472c1R73-R80))
if we don't introduce `onRunStart`. Or we need to call `setQueryType` in
each kernel run.
2024-01-22 16:08:55 -08:00
..
onnxjs [js] optimize eslint config (#18460) 2023-11-20 12:00:56 -08:00
wasm [js/webgpu] set query type in onRunStart (#19202) 2024-01-22 16:08:55 -08:00
backend-onnxjs.ts [js/web/training] runTrainStep implementation (#18006) 2023-11-02 08:32:50 -07:00
backend-wasm-inference.ts Add "glue" between training WASM artifacts and training web (#17474) 2023-10-12 11:16:56 -07:00
backend-wasm-training.ts [js/web/training] runTrainStep implementation (#18006) 2023-11-02 08:32:50 -07:00
backend-wasm.ts [js/web] show warning when numThreads is set but threads is not supported (#19179) 2024-01-17 15:04:22 -08:00
build-def.d.ts [WebNN] Enable npm unit tests (#18486) 2024-01-09 10:10:57 -08:00
index.ts [web] remove xnnpack from web backends (#19116) 2024-01-13 23:04:02 -08:00
version.ts [ORT 1.17.0 release] Bump up version to 1.18.0 (#19170) 2024-01-17 11:18:32 -08:00