diff options
author | Giuseppe Rossini <giuseppe.rossini@arm.com> | 2018-08-23 11:29:59 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:54:54 +0000 |
commit | 6a90b69d2e0a2d3be8c88d65aa4ee228605344da (patch) | |
tree | fc9f461e032581e49f1ca967c2641914f5a882c0 /src/runtime/NEON/functions/NEReshapeLayer.cpp | |
parent | d8b8be2abb964f4b17b826983b689d7dfe69d0f8 (diff) | |
download | ComputeLibrary-6a90b69d2e0a2d3be8c88d65aa4ee228605344da.tar.gz |
[COMPMID-1301] Add validate() method to NEReshapeLayer
Change-Id: Idc3b15f2421858bbf726cd9da82487ff2e1f2910
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/145335
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/runtime/NEON/functions/NEReshapeLayer.cpp')
-rw-r--r-- | src/runtime/NEON/functions/NEReshapeLayer.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/runtime/NEON/functions/NEReshapeLayer.cpp b/src/runtime/NEON/functions/NEReshapeLayer.cpp index fef4e0cc19..4600f36660 100644 --- a/src/runtime/NEON/functions/NEReshapeLayer.cpp +++ b/src/runtime/NEON/functions/NEReshapeLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -24,6 +24,7 @@ #include "arm_compute/runtime/NEON/functions/NEReshapeLayer.h" #include "arm_compute/core/NEON/kernels/NEReshapeLayerKernel.h" +#include "arm_compute/core/Validate.h" #include "support/ToolchainSupport.h" #include <utility> @@ -36,3 +37,11 @@ void NEReshapeLayer::configure(const ITensor *input, ITensor *output) k->configure(input, output); _kernel = std::move(k); } + +Status NEReshapeLayer::validate(const ITensorInfo *input, const ITensorInfo *output) +{ + ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(input, output); + ARM_COMPUTE_RETURN_ON_ERROR(NEReshapeLayerKernel::validate(input, output)); + + return Status{}; +} |