From aad9f2c976ff9bb7022751f4ee8c659194d2b3a6 Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Wed, 21 Feb 2018 11:51:23 +0000 Subject: COMPMID-754: Add CLPermute validation method Change-Id: I77ed920a43738effd55b086e3138f497057a72c5 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/121618 Reviewed-by: Anthony Barbier Tested-by: Jenkins --- src/runtime/CL/functions/CLPermute.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/runtime/CL/functions/CLPermute.cpp') diff --git a/src/runtime/CL/functions/CLPermute.cpp b/src/runtime/CL/functions/CLPermute.cpp index f23e231e9e..146856cd77 100644 --- a/src/runtime/CL/functions/CLPermute.cpp +++ b/src/runtime/CL/functions/CLPermute.cpp @@ -25,6 +25,7 @@ #include "arm_compute/core/CL/ICLTensor.h" #include "arm_compute/core/CL/kernels/CLPermuteKernel.h" +#include "arm_compute/core/Error.h" #include "support/ToolchainSupport.h" using namespace arm_compute; @@ -34,4 +35,10 @@ void CLPermute::configure(const ICLTensor *input, ICLTensor *output, const Permu auto k = arm_compute::support::cpp14::make_unique(); k->configure(input, output, perm); _kernel = std::move(k); +} + +Status CLPermute::validate(const ITensorInfo *input, const ITensorInfo *output, const PermutationVector &perm) +{ + ARM_COMPUTE_RETURN_ERROR_ON(CLPermuteKernel::validate(input, output, perm)); + return Status{}; } \ No newline at end of file -- cgit v1.2.1