-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IR] Support deserializing unsorted graphs (#1509)
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #1510 * #1508 * __->__ #1509 When a graph is unsorted, we initialize the node input value first and add it to the value pull. Producer nodes of this value will find it from the pool when the node is initialized later, with a warning message. ``` Input 'val_1' of node 'node_1(::Node1:)' not found in any scope. The graph may be unsorted. Creating a new input (current depth: 1) . ``` We needed this feature because we also need to be able to convert invalid models into IR and be also to fix them. Fix #1426
- Loading branch information
1 parent
1e4b585
commit c2d1de1
Showing
4 changed files
with
126 additions
and
36 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