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