24.02
|
Go to the documentation of this file.
32 struct NEPermute::Impl
34 const ITensor *
src{
nullptr};
35 ITensor *
dst{
nullptr};
36 std::unique_ptr<cpu::CpuPermute> op{
nullptr};
51 _impl->op = std::make_unique<cpu::CpuPermute>();
52 _impl->op->configure(
input->info(), output->
info(), perm);
SimpleTensor< float > src
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, const PermutationVector &perm)
Static function to check if given info will lead to a valid configuration.
Interface for CPU tensor.
~NEPermute()
Default Destructor.
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.
Strides of an item in bytes.
#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.
NEPermute()
Default Constructor.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const PermutationVector &perm)
Static function to check if given info will lead to a valid configuration of NEPermute.
void configure(const ITensor *input, ITensor *output, const PermutationVector &perm)
Configure the permute function.
void run() override
Run the kernels contained in the function.
Copyright (c) 2017-2024 Arm Limited.
#define ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(...)
Store the tensor's metadata.