Skip to content

Commit 9b46ace

Browse files
egolearnertqchen
authored andcommitted
make tvm compilable by gcc 4.9.2 (#4032)
please see https://stackoverflow.com/a/26949099
1 parent 8f18cc4 commit 9b46ace

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/op/tensorize.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ TVM_REGISTER_API("test.op.MatchTensorizeBody")
522522
CHECK(stage->op.as<ComputeOpNode>());
523523
*ret = MatchTensorizeBody(stage->op.as<ComputeOpNode>(),
524524
stage,
525-
{},
525+
{{}},
526526
as_unordered_map(out_dom),
527527
as_unordered_map(in_region),
528528
intrin,

src/relay/pass/well_formed.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class WellFormedChecker : private ExprVisitor, PatternVisitor {
4343
struct Scope {
4444
WellFormedChecker* wfc;
4545
explicit Scope(WellFormedChecker* wfc) : wfc(wfc) {
46-
wfc->scope.push_back({});
46+
wfc->scope.push_back({{}});
4747
}
4848
~Scope() {
4949
CHECK_GE(wfc->scope.size(), 0);

0 commit comments

Comments
 (0)