-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IR] Implement register_initializer (#1941)
Implement `register_initializer(value)` on `Graph` for robustly adding an initializer to the graph. Users can also directly modify the `graph.initializers` dictionary, but this method does more comprehensive checks before adding, and calling this method is simpler than modifying the dictionary. The method could be in the `convenience` too, but I put it here due to its relevance and for better discoverability.
- Loading branch information
1 parent
d36184f
commit fa7d13a
Showing
2 changed files
with
60 additions
and
0 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