33 struct NEReshapeLayer::Impl
35 const ITensor *
src{
nullptr };
36 ITensor *
dst{
nullptr };
37 std::unique_ptr<cpu::CpuReshape> op{
nullptr };
41 : _impl(
std::make_unique<Impl>())
54 _impl->op = std::make_unique<cpu::CpuReshape>();
55 _impl->op->configure(input->
info(), output->
info());
static Status validate(const ITensorInfo *input, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of NEReshapeLayer.
#define ARM_COMPUTE_RETURN_ON_ERROR(status)
Checks if a status contains an error and returns it.
Store the tensor's metadata.
Interface for CPU tensor.
SimpleTensor< float > src
Copyright (c) 2017-2023 Arm Limited.
#define ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(...)
NEReshapeLayer & operator=(const NEReshapeLayer &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
static Status validate(const ITensorInfo *src, const ITensorInfo *dst)
Static function to check if given info will lead to a valid configuration.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
Basic function to run cpu::kernels::CpuReshapeKernel.
NEReshapeLayer()
Default Constructor.
void configure(const ITensor *input, ITensor *output)
Initialise the kernel's inputs and outputs.
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
~NEReshapeLayer()
Default Destructor.
void run() override
Run the kernels contained in the function.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.