-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add an external MAML implementation as a submodule * Load omniglot * Model rewriting in transform.py - Change inputs for KWS to eliminate unsupported operators from the final ONNX model. - Save models at each step of rewriting for debugging - Inference dynamic shapes to get rid of a complex graph from forward steps like `x = x.view(x.size(0), -1)` - Constant folding for Squeeze and Reshape nodes with known new shape and constant input - Reduce global variables so that the latest model is always used after model rewriting * Other changes in transform.py - Move more ONNX helpers to utils.py - Make transformation of input samples more robust in terms of input shape - Don't use a default batch size; make that argument required. * Implement BatchNormalization * Use libc_nano instead of libc as the model omniglot-maml is too large [1] onnx/optimizer#38 [2] microsoft/onnxruntime#5577
- Loading branch information
Chih-Hsuan Yen
committed
Feb 7, 2022
1 parent
b11ff62
commit 749fa97
Showing
13 changed files
with
188 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ | |
[submodule "ARM-CMSIS"] | ||
path = ARM-CMSIS | ||
url = ssh://[email protected]/EMCLab-Sinica/ARM-CMSIS.git | ||
[submodule "data/MAML-Pytorch"] | ||
path = data/MAML-Pytorch | ||
url = https://github.com/yan12125/MAML-Pytorch |
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
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
Submodule MAML-Pytorch
added at
6de70c
Binary file not shown.
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