aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Bentham <Matthew.Bentham@arm.com>2023-04-27 12:06:04 +0000
committerMatthew Bentham <matthew.bentham@arm.com>2023-05-05 08:18:31 +0000
commit76e7b63401bf01875de8beda2198df36ca6a7bc9 (patch)
tree520793dede8e92d15e78e42dcd55f7a531544e8d
parent352c07ddd49842b5c3a8e5a2b5a90832bfb70091 (diff)
downloadComputeLibrary-76e7b63401bf01875de8beda2198df36ca6a7bc9.tar.gz
Make NECast::validate take args by const pointer
Change-Id: I5d343e959942cb2ce48442d95d7c62aecd6a34d0 Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9573 Reviewed-by: SiCong Li <sicong.li@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--arm_compute/runtime/NEON/functions/NECast.h4
-rw-r--r--src/runtime/NEON/functions/NECast.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/arm_compute/runtime/NEON/functions/NECast.h b/arm_compute/runtime/NEON/functions/NECast.h
index 30499f5ecf..821249c142 100644
--- a/arm_compute/runtime/NEON/functions/NECast.h
+++ b/arm_compute/runtime/NEON/functions/NECast.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019-2021 Arm Limited.
+ * Copyright (c) 2019-2023 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -85,7 +85,7 @@ public:
*
* @return a status
*/
- static Status validate(ITensorInfo *input, ITensorInfo *output, ConvertPolicy policy);
+ static Status validate(const ITensorInfo *input, const ITensorInfo *output, ConvertPolicy policy);
// Inherited methods overridden
void run() override;
diff --git a/src/runtime/NEON/functions/NECast.cpp b/src/runtime/NEON/functions/NECast.cpp
index a58d4e5f69..f93a6ea745 100644
--- a/src/runtime/NEON/functions/NECast.cpp
+++ b/src/runtime/NEON/functions/NECast.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019-2021 Arm Limited.
+ * Copyright (c) 2019-2023 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -55,7 +55,7 @@ void NECast::configure(ITensor *input, ITensor *output, ConvertPolicy policy)
_impl->op->configure(_impl->src->info(), _impl->dst->info(), policy);
}
-Status NECast::validate(ITensorInfo *input, ITensorInfo *output, ConvertPolicy policy)
+Status NECast::validate(const ITensorInfo *input, const ITensorInfo *output, ConvertPolicy policy)
{
return cpu::CpuCast::validate(input, output, policy);
}