Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tvm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cld
ml
tvm
Commits
0565fcc8
Commit
0565fcc8
authored
6 years ago
by
Yang Chen
Committed by
Tianqi Chen
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added a helper function that dumps Node to stderr (#1703)
parent
8e7ff260
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/tvm/expr.h
+7
-0
7 additions, 0 deletions
include/tvm/expr.h
src/lang/expr.cc
+4
-0
4 additions, 0 deletions
src/lang/expr.cc
with
11 additions
and
0 deletions
include/tvm/expr.h
+
7
−
0
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
...
...
This diff is collapsed.
Click to expand it.
src/lang/expr.cc
+
4
−
0
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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment