diff options
Diffstat (limited to 'src/runtime/NEON/functions/NERange.cpp')
-rw-r--r-- | src/runtime/NEON/functions/NERange.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/runtime/NEON/functions/NERange.cpp b/src/runtime/NEON/functions/NERange.cpp index 977d502286..95492df126 100644 --- a/src/runtime/NEON/functions/NERange.cpp +++ b/src/runtime/NEON/functions/NERange.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 ARM Limited. + * Copyright (c) 2018-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -25,16 +25,22 @@ #include "arm_compute/runtime/NEON/NEScheduler.h" +#include "src/common/utils/Log.h" +#include "src/core/NEON/kernels/NERangeKernel.h" + namespace arm_compute { -NERange::NERange() - : _kernel() +NERange::~NERange() = default; + +NERange::NERange() : _kernel() { } void NERange::configure(ITensor *output, const float start, const float end, const float step) { - _kernel.configure(output, start, end, step); + ARM_COMPUTE_LOG_PARAMS(output, start, end, step); + _kernel = std::make_unique<NERangeKernel>(); + _kernel->configure(output, start, end, step); } Status NERange::validate(const ITensorInfo *output, const float start, const float end, const float step) @@ -44,6 +50,6 @@ Status NERange::validate(const ITensorInfo *output, const float start, const flo void NERange::run() { - NEScheduler::get().schedule(&_kernel, Window::DimX); + NEScheduler::get().schedule(_kernel.get(), Window::DimX); } -} // namespace arm_compute
\ No newline at end of file +} // namespace arm_compute |