Repository navigation
[WebGPU] Expose safe graph capture I/O in Python #32074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Ananya Anand (4n4ny4)
merged 21 commits into
microsoft:main
from
4n4ny4:webgpu-python-graph-capture-io
Sep 2, 2026
+1,141
−29
Merged
Changes from 18 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7aaf114
[WebGPU] Add session-scoped OrtValue bindings
c91911c
[Python] Expose safe WebGPU graph capture I/O
a308552
[WebGPU] Test Python graph capture I/O
e7a0590
[WebGPU] Accept shared-allocator WebGPU OrtValues in Python I/O
8462ca6
Address review findings C1, S1, C2 and Q1
80b11f9
cleanup
48a2b3c
Note core provenance of the graph-annotation skip ID
53d701e
[WebGPU] Cover the DataTransfer device-compatibility predicate
0f42878
[Python] Release captured graphs before set_providers() replaces the …
9588dad
[Python] Make OrtValue._is_webgpu_buffer read-only
364fad2
[Python] Restore numpy() and data_ptr() for WebGPU OrtValues
8dad6bd
[Python] Gate run_with_ortvaluevector on graph capture, not provider …
fdd0a19
[Python] Drop the get_outputs_as_ortvaluevector WebGPU guard
80102f2
[Python] Say what the OrtValueVector WebGPU guards actually protect
f1b813d
[Python] Narrow copy_tensors to reject only foreign WebGPU contexts
91541a5
[WebGPU] Report copy_tensors misuse instead of terminating the process
8f4ba8b
[Python] Populate device OrtValues with copy_tensors, not a session u…
c8eebda
[Python] Guard the WebGPU graph-capture OrtValue test on WebGPU avail…
ef7e34c
Address review: share the allocator-name helper and narrow OrtValue o…
876c7f9
Apply the context-compatible ownership rule to IOBinding too
149f712
Apply the context-compatible ownership rule to update_inplace too
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
327 changes: 308 additions & 19 deletions
327
onnxruntime/python/onnxruntime_inference_collection.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.