-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebNN EP] Move MLContext creation to a singleton
In order to enable I/O Binding with the upcoming MLBuffer changes to the WebNN specification, we need to share the same MLContext across multiple sessions. This is because MLBuffers are tied to the MLContext where they were created.
- Loading branch information
Showing
1 changed file
with
98 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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