forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ONNX] Clean up patch functions (pytorch#83136)
Changes: - Move namespace handling from `_new_node` to `_graph_op` for clarity - Always require the `aten` namespace when creating aten ops. Remove the `aten` argument supplied in `_aten_op` for clarity - Rename the `_ATTR_PATTERN` global - Improve types - Update `_add_attribute` to raise ValueErrors Pull Request resolved: pytorch#83136 Approved by: https://github.com/BowenBao
- Loading branch information
1 parent
ec5b83f
commit 681c387
Showing
2 changed files
with
60 additions
and
44 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