Skip to content

Commit

Permalink
Fix build error (apache#3552)
Browse files Browse the repository at this point in the history
* Fix build error

* comments
  • Loading branch information
Yinghai Lu authored and wweic committed Aug 9, 2019
1 parent cf7c835 commit 930fc22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/tvm/build_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
10 changes: 5 additions & 5 deletions src/relay/ir/doc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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();
}
Expand Down

0 comments on commit 930fc22

Please sign in to comment.