From 12fa3fde61a0f4400e84f7d268fd0b8df2638ee5 Mon Sep 17 00:00:00 2001 From: egolearner Date: Sun, 29 Sep 2019 16:22:24 +0800 Subject: [PATCH] make tvm compilable by gcc 4.9.2 please see https://stackoverflow.com/a/26949099 --- src/op/tensorize.cc | 2 +- src/relay/pass/well_formed.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/op/tensorize.cc b/src/op/tensorize.cc index 476a0a5d67fc..230472f2ddee 100644 --- a/src/op/tensorize.cc +++ b/src/op/tensorize.cc @@ -522,7 +522,7 @@ TVM_REGISTER_API("test.op.MatchTensorizeBody") CHECK(stage->op.as()); *ret = MatchTensorizeBody(stage->op.as(), stage, - {}, + {{}}, as_unordered_map(out_dom), as_unordered_map(in_region), intrin, diff --git a/src/relay/pass/well_formed.cc b/src/relay/pass/well_formed.cc index 27b31deb4f96..99f34bdd1d2a 100644 --- a/src/relay/pass/well_formed.cc +++ b/src/relay/pass/well_formed.cc @@ -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);