forked from apache/tvm
-
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.
[Node] Allow alternative root names in ObjectPath::Root() (apache#14569)
* [Node] Allow alternative root names in ObjectPath::Root() Previously, the `ObjectPath` utility allowed tracking of an object's location within a tree-like structure. However, the base of the path structure was hard-coded to be the string `<root>`. For use cases such as `StructuralEqual`, there is a clear root node. However, other cases such as using `ObjectPath` to specify an object's location relative to a known variable, would require using that known variable's name as the root, rather than the hard-coded string `<root>`. This commit adds an optional parameter to provide an alternative name for the root node, to allow for these use cases. * Updated python API, added unit test
- Loading branch information
1 parent
3ef745c
commit b4c1995
Showing
4 changed files
with
34 additions
and
8 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