-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IR][Debug] Add dump and print for debugging (NFC)
- Add two utility functions for debugging. With this change, developers could use `print op->dump()` or `print op->print()` inside a debugger (lldb or gdb). Object op could be either of type Object or ObjectRef. Note that the existing tvm::Dump(ref) does not work on objects of type tvm::Object. Sometimes lldb cannot locate this Dump function inside a visitor context. Signed-off-by: Wei Pan <weip@nvidia.com>
- Loading branch information
Showing
2 changed files
with
26 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