From 68effc58787cc3cd437cbb2db456c62c34890bd3 Mon Sep 17 00:00:00 2001 From: egolearner <45122959+egolearner@users.noreply.github.com> Date: Mon, 30 Sep 2019 00:21:18 +0800 Subject: [PATCH] make tvm compilable by gcc 4.9.2 (#4032) 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 476a0a5d67fc1..230472f2ddee8 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 27b31deb4f965..99f34bdd1d2ab 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);