aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/CL/functions/CLReshapeLayer.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2020-07-22 12:11:20 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2020-07-24 13:36:11 +0000
commit09cad7253cc75f67bf428ceef196cfbec7f8c357 (patch)
treec60bd15e82c1e01fa688bfb8ddb426fc7be419c9 /src/runtime/CL/functions/CLReshapeLayer.cpp
parent318c9f40770b2d1c06f8c0fe3f7929812503733e (diff)
downloadComputeLibrary-09cad7253cc75f67bf428ceef196cfbec7f8c357.tar.gz
COMPMID-3393: Minor tweaks on memory injection interface
* Avoid the need to overload workspace() everytime * Remove the Layer suffix from the operators * Clean interface by removing default arguments when unsupported Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Change-Id: I7710ecd485cae13e9c2d45216debbd8103bc5a0f Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3610 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/runtime/CL/functions/CLReshapeLayer.cpp')
-rw-r--r--src/runtime/CL/functions/CLReshapeLayer.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/runtime/CL/functions/CLReshapeLayer.cpp b/src/runtime/CL/functions/CLReshapeLayer.cpp
index d75e798183..ac8b176963 100644
--- a/src/runtime/CL/functions/CLReshapeLayer.cpp
+++ b/src/runtime/CL/functions/CLReshapeLayer.cpp
@@ -32,29 +32,24 @@ namespace arm_compute
{
namespace experimental
{
-void CLReshapeLayer::configure(const CLCompileContext &compile_context, const ITensorInfo *input, ITensorInfo *output)
+void CLReshape::configure(const CLCompileContext &compile_context, const ITensorInfo *input, ITensorInfo *output)
{
auto k = arm_compute::support::cpp14::make_unique<CLReshapeLayerKernel>();
k->configure(compile_context, input, output);
_kernel = std::move(k);
}
-Status CLReshapeLayer::validate(const ITensorInfo *input, const ITensorInfo *output)
+Status CLReshape::validate(const ITensorInfo *input, const ITensorInfo *output)
{
return arm_compute::CLReshapeLayerKernel::validate(input, output);
}
-
-MemoryRequirements CLReshapeLayer::workspace() const
-{
- return MemoryRequirements{};
-}
} // namespace experimental
struct CLReshapeLayer::Impl
{
- const ICLTensor *src{ nullptr };
- ICLTensor *dst{ nullptr };
- std::unique_ptr<experimental::CLReshapeLayer> op{ nullptr };
+ const ICLTensor *src{ nullptr };
+ ICLTensor *dst{ nullptr };
+ std::unique_ptr<experimental::CLReshape> op{ nullptr };
};
CLReshapeLayer::CLReshapeLayer()
@@ -75,14 +70,14 @@ void CLReshapeLayer::configure(const CLCompileContext &compile_context, const IC
{
_impl->src = input;
_impl->dst = output;
- _impl->op = arm_compute::support::cpp14::make_unique<experimental::CLReshapeLayer>();
+ _impl->op = arm_compute::support::cpp14::make_unique<experimental::CLReshape>();
_impl->op->configure(compile_context, input->info(), output->info());
}
Status CLReshapeLayer::validate(const ITensorInfo *input, const ITensorInfo *output)
{
ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(input, output);
- ARM_COMPUTE_RETURN_ON_ERROR(experimental::CLReshapeLayer::validate(input, output));
+ ARM_COMPUTE_RETURN_ON_ERROR(experimental::CLReshape::validate(input, output));
return Status{};
}