-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support CPU backend for LeNet sample (#205)
* Revert "Disable WebNN CPU for LeNet (#204)" This reverts commit cc9559c. * Support CPU backend for LeNet sample The changes of this PR include: 1. Support nhwc conv2d and pool2d for LeNet. 2. Derive permuteData function from transformers.js that is used to permute the filter data. 3. Use gemm to replace matmul, because XNNPACK matmul doesn't support 2D inputs. 4. Fix some isses of UI.
- Loading branch information
Showing
4 changed files
with
187 additions
and
94 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
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