From 7530d24352ff5f262f26f3d1c018879af55be22b Mon Sep 17 00:00:00 2001 From: hlu1 <14827759+hlu1@users.noreply.github.com> Date: Fri, 12 Jun 2020 08:24:29 -0700 Subject: [PATCH] [Topi] pass-by-value -> pass-by-const-reference (#5783) --- topi/include/topi/generic/default.h | 4 ++-- topi/include/topi/generic/extern.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/topi/include/topi/generic/default.h b/topi/include/topi/generic/default.h index c44bc69190f4..403b943a16e6 100644 --- a/topi/include/topi/generic/default.h +++ b/topi/include/topi/generic/default.h @@ -43,7 +43,7 @@ namespace generic { * * \return A schedule for the given ops. */ -inline Schedule default_schedule(const Target& target, Array outs) { +inline Schedule default_schedule(const Target& target, const Array& outs) { Array out_ops; for (auto t : outs) { out_ops.push_back(t->op); @@ -61,7 +61,7 @@ inline Schedule default_schedule(const Target& target, Array outs) { * * \return A schedule for the given ops. */ -inline Schedule default_schedule_auto_inline(const Target& target, Array outs) { +inline Schedule default_schedule_auto_inline(const Target& target, const Array& outs) { Array out_ops; for (auto t : outs) { out_ops.push_back(t->op); diff --git a/topi/include/topi/generic/extern.h b/topi/include/topi/generic/extern.h index 6e5507b4e77b..3954ac69ada8 100644 --- a/topi/include/topi/generic/extern.h +++ b/topi/include/topi/generic/extern.h @@ -44,7 +44,7 @@ namespace generic { * * \return A schedule for the op. */ -inline Schedule schedule_extern(const Target& target, Array outs) { +inline Schedule schedule_extern(const Target& target, const Array& outs) { Array out_ops; for (auto t : outs) { out_ops.push_back(t->op);