aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/NEON/functions/NEDequantizationLayer.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-02-18 20:08:02 +0000
committerGiuseppe Rossini <giuseppe.rossini@arm.com>2019-03-05 11:44:18 +0000
commit574775c7fa78a094bbeb7f9f87aca832936884e2 (patch)
treea405e7a265865acc1348860514de28de2835ce24 /src/runtime/NEON/functions/NEDequantizationLayer.cpp
parent79fa9a22022824735986f74557bf38095eb2284d (diff)
downloadComputeLibrary-574775c7fa78a094bbeb7f9f87aca832936884e2.tar.gz
COMPMID-1937: Adds support for DequantizationLayer for NEON/CL.
Change-Id: I4b73edd176a277294e0e42e642460bc61210778a Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/744 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Giuseppe Rossini <giuseppe.rossini@arm.com>
Diffstat (limited to 'src/runtime/NEON/functions/NEDequantizationLayer.cpp')
-rw-r--r--src/runtime/NEON/functions/NEDequantizationLayer.cpp36
1 files changed, 11 insertions, 25 deletions
diff --git a/src/runtime/NEON/functions/NEDequantizationLayer.cpp b/src/runtime/NEON/functions/NEDequantizationLayer.cpp
index 0627977686..e92b4bfdc4 100644
--- a/src/runtime/NEON/functions/NEDequantizationLayer.cpp
+++ b/src/runtime/NEON/functions/NEDequantizationLayer.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2018 ARM Limited.
+ * Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -24,34 +24,20 @@
#include "arm_compute/runtime/NEON/functions/NEDequantizationLayer.h"
-#include "arm_compute/core/Types.h"
-#include "arm_compute/core/Validate.h"
-#include "arm_compute/runtime/NEON/NEScheduler.h"
+#include "arm_compute/core/NEON/kernels/NEDequantizationLayerKernel.h"
+#include "support/ToolchainSupport.h"
-using namespace arm_compute;
-
-NEDequantizationLayer::NEDequantizationLayer()
- : _dequantize_kernel()
+namespace arm_compute
{
-}
-
-Status NEDequantizationLayer::validate(const ITensorInfo *input, const ITensorInfo *output, const ITensorInfo *min_max)
+void NEDequantizationLayer::configure(const ITensor *input, ITensor *output)
{
- ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(input, output, min_max);
- ARM_COMPUTE_RETURN_ON_ERROR(NEDequantizationLayerKernel::validate(input, output, min_max));
-
- return Status{};
+ auto k = arm_compute::support::cpp14::make_unique<NEDequantizationLayerKernel>();
+ k->configure(input, output);
+ _kernel = std::move(k);
}
-void NEDequantizationLayer::configure(const ITensor *input, ITensor *output, const ITensor *min_max)
+Status NEDequantizationLayer::validate(const ITensorInfo *input, const ITensorInfo *output)
{
- ARM_COMPUTE_ERROR_ON_NULLPTR(input, output, min_max);
-
- // Configure kernel
- _dequantize_kernel.configure(input, output, min_max);
+ return NEDequantizationLayerKernel::validate(input, output);
}
-
-void NEDequantizationLayer::run()
-{
- NEScheduler::get().schedule(&_dequantize_kernel, Window::DimY);
-} \ No newline at end of file
+} // namespace arm_compute \ No newline at end of file