Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
15b1751c
Unverified
Commit
15b1751c
authored
Apr 01, 2020
by
Wei Pan
Committed by
GitHub
Apr 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Debug] Add Dump function for Object type (NFC) (#5207)
Signed-off-by: Wei Pan <weip@nvidia.com>
parent
5b857d3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
include/tvm/node/repr_printer.h
+7
-1
src/node/repr_printer.cc
+5
-1
No files found.
include/tvm/node/repr_printer.h
View file @
15b1751c
...
...
@@ -51,7 +51,13 @@ class ReprPrinter {
* \brief Dump the node to stderr, used for debug purposes.
* \param node The input node
*/
TVM_DLL
void
Dump
(
const
ObjectRef
&
node
);
TVM_DLL
void
Dump
(
const
runtime
::
ObjectRef
&
node
);
/*!
* \brief Dump the node to stderr, used for debug purposes.
* \param node The input node
*/
TVM_DLL
void
Dump
(
const
runtime
::
Object
*
node
);
}
// namespace tvm
...
...
src/node/repr_printer.cc
View file @
15b1751c
...
...
@@ -51,10 +51,14 @@ ReprPrinter::FType& ReprPrinter::vtable() {
return
inst
;
}
void
Dump
(
const
ObjectRef
&
n
)
{
void
Dump
(
const
runtime
::
ObjectRef
&
n
)
{
std
::
cerr
<<
n
<<
"
\n
"
;
}
void
Dump
(
const
runtime
::
Object
*
n
)
{
Dump
(
runtime
::
GetRef
<
runtime
::
ObjectRef
>
(
n
));
}
TVM_REGISTER_GLOBAL
(
"node.AsRepr"
)
.
set_body_typed
([](
runtime
::
ObjectRef
obj
)
{
std
::
ostringstream
os
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment