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
48c1ae45
Commit
48c1ae45
authored
Jul 16, 2019
by
Yinghai Lu
Committed by
Tianqi Chen
Jul 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build error (#3552)
* Fix build error * comments
parent
fd6dbd5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
include/tvm/build_module.h
+1
-1
src/relay/ir/doc.cc
+5
-5
No files found.
include/tvm/build_module.h
View file @
48c1ae45
...
...
@@ -457,7 +457,7 @@ inline runtime::TVMRetValue GenericFunc::operator()(Args&& ...args) const {
runtime
::
detail
::
for_each
(
runtime
::
TVMArgsSetter
(
values
,
type_codes
),
std
::
forward
<
Args
>
(
args
)...);
runtime
::
TVMRetValue
rv
;
CallPacked
(
TVMArgs
(
values
,
type_codes
,
kNumArgs
),
&
rv
);
CallPacked
(
runtime
::
TVMArgs
(
values
,
type_codes
,
kNumArgs
),
&
rv
);
return
rv
;
}
...
...
src/relay/ir/doc.cc
View file @
48c1ae45
...
...
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
...
...
@@ -51,7 +51,7 @@ Doc::Doc(const std::string& str) {
// DSL function implementations
Doc
&
Doc
::
operator
<<
(
const
Doc
&
right
)
{
assert
(
this
!=
&
right
);
CHECK
(
this
!=
&
right
);
this
->
stream_
.
insert
(
this
->
stream_
.
end
(),
right
.
stream_
.
begin
(),
right
.
stream_
.
end
());
return
*
this
;
}
...
...
@@ -72,7 +72,7 @@ Doc Indent(int indent, const Doc& doc) {
ret
.
stream_
.
push_back
(
text
);
}
else
if
(
auto
line
=
std
::
dynamic_pointer_cast
<
LineNode
>
(
atom
))
{
ret
.
stream_
.
push_back
(
Line
(
indent
+
line
->
indent
));
}
else
{
assert
(
false
);}
}
else
{
CHECK
(
false
);}
}
return
ret
;
}
...
...
@@ -84,7 +84,7 @@ std::string Doc::str() {
os
<<
text
->
str
;
}
else
if
(
auto
line
=
std
::
dynamic_pointer_cast
<
LineNode
>
(
atom
))
{
os
<<
"
\n
"
<<
std
::
string
(
line
->
indent
,
' '
);
}
else
{
assert
(
false
);}
}
else
{
CHECK
(
false
);}
}
return
os
.
str
();
}
...
...
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