forked from webmachinelearning/webnn-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the Facial Landmark Detection example to fetch in parallel (w…
…ebmachinelearning#188) * Refactor the Facial Landmark Detection example to fetch in parallel This model separates each constant value into a separate NumPy file which needs to be fetched. This change refactors the graph construction so that these fetches can happen in parallel rather than waiting for each fetch to complete before building that graph layer. This is an experiment to determine whether it would be more ergonomic for the graph builder function to accept promises so that this kind of code can be written without the careful placement of awaits demonstrated here. * Fix lint errors
- Loading branch information
Showing
5 changed files
with
193 additions
and
158 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
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
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
Oops, something went wrong.