mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
[js/web] transfer input buffer back to caller thread (#19677)
### Description When using proxy worker, input buffers should be transferred back to the caller thread after `run()` call is done. Fixes #19488
This commit is contained in:
parent
22176a5fa8
commit
f06164ef8b
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ self.onmessage = (ev: MessageEvent<OrtWasmMessage>): void => {
|
|||
} else {
|
||||
postMessage(
|
||||
{type, out: outputs} as OrtWasmMessage,
|
||||
extractTransferableBuffers(outputs as SerializableTensorMetadata[]));
|
||||
extractTransferableBuffers([...inputs, ...outputs] as SerializableTensorMetadata[]));
|
||||
}
|
||||
},
|
||||
err => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue