diff options
Diffstat (limited to 'src/runtime/NEON/functions/NECast.cpp')
-rw-r--r-- | src/runtime/NEON/functions/NECast.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/runtime/NEON/functions/NECast.cpp b/src/runtime/NEON/functions/NECast.cpp index b519576ad5..1fd172a730 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 * @@ -24,22 +24,23 @@ #include "arm_compute/runtime/NEON/functions/NECast.h" #include "arm_compute/core/Validate.h" -#include "src/runtime/cpu/operators/CpuCast.h" + +#include "src/common/utils/Log.h" +#include "src/cpu/operators/CpuCast.h" namespace arm_compute { struct NECast::Impl { - const ITensor *src{ nullptr }; - ITensor *dst{ nullptr }; - std::unique_ptr<cpu::CpuCast> op{ nullptr }; + const ITensor *src{nullptr}; + ITensor *dst{nullptr}; + std::unique_ptr<cpu::CpuCast> op{nullptr}; }; -NECast::NECast() - : _impl(std::make_unique<Impl>()) +NECast::NECast() : _impl(std::make_unique<Impl>()) { } -NECast::NECast(NECast &&) = default; +NECast::NECast(NECast &&) = default; NECast &NECast::operator=(NECast &&) = default; NECast::~NECast() = default; @@ -49,19 +50,19 @@ void NECast::configure(ITensor *input, ITensor *output, ConvertPolicy policy) _impl->dst = output; ARM_COMPUTE_ERROR_ON_NULLPTR(_impl->src, _impl->dst); - + ARM_COMPUTE_LOG_PARAMS(input, output, policy); _impl->op = std::make_unique<cpu::CpuCast>(); _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); } void NECast::run() { - ITensorPack pack = { { ACL_SRC, _impl->src }, { ACL_DST, _impl->dst } }; + ITensorPack pack = {{ACL_SRC, _impl->src}, {ACL_DST, _impl->dst}}; _impl->op->run(pack); } } // namespace arm_compute |