Skip to content

Commit

Permalink
make tvm compilable by gcc 4.9.2 (apache#4032)
Browse files Browse the repository at this point in the history
  • Loading branch information
egolearner authored and wweic committed Sep 30, 2019
1 parent db71a7b commit 68effc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/op/tensorize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ TVM_REGISTER_API("test.op.MatchTensorizeBody")
CHECK(stage->op.as<ComputeOpNode>());
*ret = MatchTensorizeBody(stage->op.as<ComputeOpNode>(),
stage,
{},
{{}},
as_unordered_map(out_dom),
as_unordered_map(in_region),
intrin,
Expand Down
2 changes: 1 addition & 1 deletion src/relay/pass/well_formed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class WellFormedChecker : private ExprVisitor, PatternVisitor {
struct Scope {
WellFormedChecker* wfc;
explicit Scope(WellFormedChecker* wfc) : wfc(wfc) {
wfc->scope.push_back({});
wfc->scope.push_back({{}});
}
~Scope() {
CHECK_GE(wfc->scope.size(), 0);
Expand Down

0 comments on commit 68effc5

Please sign in to comment.