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
0565fcc8
Commit
0565fcc8
authored
Sep 11, 2018
by
Yang Chen
Committed by
Tianqi Chen
Sep 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a helper function that dumps Node to stderr (#1703)
parent
8e7ff260
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
include/tvm/expr.h
+7
-0
src/lang/expr.cc
+4
-0
No files found.
include/tvm/expr.h
View file @
0565fcc8
...
...
@@ -230,6 +230,13 @@ using Domain = Array<Range>;
// print functions for expr
TVM_DLL
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
NodeRef
&
n
);
// NOLINT(*)
/*!
* \brief Dump the node to stderr, used for debug purposes.
* \param node The input node
*/
TVM_DLL
void
Dump
(
const
NodeRef
&
node
);
// definition of Node.
/*!
* \brief An iteration variable representing an iteration
...
...
src/lang/expr.cc
View file @
0565fcc8
...
...
@@ -47,6 +47,10 @@ std::ostream& operator<<(std::ostream& os, const NodeRef& n) { // NOLINT(*)
return
os
;
}
void
Dump
(
const
NodeRef
&
n
)
{
std
::
cerr
<<
n
<<
"
\n
"
;
}
Var
var
(
const
std
::
string
&
name_hint
,
Type
t
)
{
return
Var
(
name_hint
,
t
);
}
...
...
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