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