From 2fd991e83b720cb6838432f5c2175eebb042e41d Mon Sep 17 00:00:00 2001 From: Jared Roesch Date: Tue, 6 Jul 2021 00:32:05 -0700 Subject: [PATCH] Fix --- src/relay/backend/te_compiler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/relay/backend/te_compiler.cc b/src/relay/backend/te_compiler.cc index 00b802ffe9f7..af243c02674e 100644 --- a/src/relay/backend/te_compiler.cc +++ b/src/relay/backend/te_compiler.cc @@ -299,12 +299,12 @@ std::tuple IsDeviceCopy(const Function& func) { auto attrs = call_node->attrs.as(); auto dst = attrs->dst_dev_type; auto src = attrs->src_dev_type; - return {true, src, dst}; + return std::tuple(true, src, dst); } } } - return {false, -1, -1}; + return std::tuple(false, -1, -1); } class LowerTensorExpr : public ExprMutator {