From 6a90b69d2e0a2d3be8c88d65aa4ee228605344da Mon Sep 17 00:00:00 2001 From: Giuseppe Rossini Date: Thu, 23 Aug 2018 11:29:59 +0100 Subject: [COMPMID-1301] Add validate() method to NEReshapeLayer Change-Id: Idc3b15f2421858bbf726cd9da82487ff2e1f2910 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/145335 Tested-by: Jenkins Reviewed-by: Georgios Pinitas Reviewed-by: Anthony Barbier --- src/runtime/NEON/functions/NEReshapeLayer.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/runtime/NEON/functions/NEReshapeLayer.cpp') 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 @@ -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{}; +} -- cgit v1.2.1