This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
forked from microsoft/onnxruntime
-
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.
Check that specific inputs are constants in Conv(Add|Mul|BN)Fusion ru…
…les (microsoft#1270) * Check for non-existent initializers while fusing conv and add. * Fix other places where initializer can be null * Add check if initializer is an input * update the models to comply with the new ONNX spec. In new ONNX spec, the initializers should not be in inputs. * Fix previous temporary code * Add negative test * Revert changes to conv_bn_fusion and conv_mul_fusion * making helper IsNodeArgConstant a little more general; updating remaining Conv*Fusion rules * minor comment * AllNodeIputsAreConstant to use new function
- Loading branch information
1 parent
089b1ef
commit b8d3700
Showing
16 changed files
with
114 additions
and
23 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
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
Binary file modified
BIN
-132 Bytes
(100%)
onnxruntime/test/testdata/transform/fusion/fuse-conv-add-mul-3d-2.onnx
Binary file not shown.
Binary file modified
BIN
-107 Bytes
(100%)
onnxruntime/test/testdata/transform/fusion/fuse-conv-add-mul-3d.onnx
Binary file not shown.
Binary file modified
BIN
-65 Bytes
(100%)
onnxruntime/test/testdata/transform/fusion/fuse-conv-add-no-bias.onnx
Binary file not shown.
Binary file modified
BIN
-175 Bytes
(68%)
onnxruntime/test/testdata/transform/fusion/fuse-conv-bn-add-mul-float16.onnx
Binary file not shown.
Binary file modified
BIN
-217 Bytes
(99%)
onnxruntime/test/testdata/transform/fusion/fuse-conv-bn-mul-add-unsqueeze-no-bias.onnx
Binary file not shown.
Binary file modified
BIN
-161 Bytes
(100%)
onnxruntime/test/testdata/transform/fusion/fuse-conv-bn-no-bias.onnx
Binary file not shown.
Binary file modified
BIN
-65 Bytes
(100%)
onnxruntime/test/testdata/transform/fusion/fuse-conv-mul-no-bias.onnx
Binary file not shown.
Binary file added
BIN
+37.5 KB
onnxruntime/test/testdata/transform/fusion/negative-fuse-conv-add-no-bias.onnx
Binary file not shown.