-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove initializedTensors map from ONNX parser (#1739)
instead insert a constant for each initializer in the frontend_symbols_ symbol map this is better for several reasons: 1. initializedTensors were incorrectly visible to function bodies (in TryImportFunctionCallNode) 2. nested bindings didn't hide initializedTensors within their scope 3. it's more efficient to create a constant for each initializer once rather than every time an initializer is accessed 4. it's simpler to look up a single symbol mapping Signed-off-by: Soren Lassen <[email protected]> Signed-off-by: Soren Lassen <[email protected]> Co-authored-by: chentong319 <[email protected]>
- Loading branch information
1 parent
62e08f8
commit 9fcbbf3
Showing
1 changed file
with
17 additions
and
58 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