23.08
|
Go to the documentation of this file.
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());
SimpleTensor< float > src
NECopy & operator=(const NECopy &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
NECopy()
Default Constructor.
Interface for CPU tensor.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst)
Static function to check if given info will lead to a valid configuration.
#define ARM_COMPUTE_RETURN_ON_ERROR(status)
Checks if a status contains an error and returns it.
Basic function to run cpu::kernels::CpuCopyKernel.
#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.
void configure(ITensor *input, ITensor *output)
Initialise the function's source and destination.
~NECopy()
Default Destructor.
Copyright (c) 2017-2023 Arm Limited.
#define ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(...)
Store the tensor's metadata.
void run() override
Run the kernels contained in the function.
static Status validate(const ITensorInfo *input, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of NECopy.