24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CPU_RESHAPE_KERNEL_H
25 #define ARM_COMPUTE_CPU_RESHAPE_KERNEL_H
59 const char *
name()
const override;
75 size_t get_mws(
const CPUInfo &platform,
size_t thread_count)
const override;
83 return _split_dimension;
SimpleTensor< float > src
size_t get_mws(const CPUInfo &platform, size_t thread_count) const override
Return minimum workload size of the relevant kernel.
Interface for the kernel to perform tensor reshaping.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst)
Static function to check if given info will lead to a valid configuration.
Interface for CPU tensor.
const char * name() const override
Name of the kernel.
void prepare(ITensorPack &tensors)
Prepare the reshape kernel for execution (Only executed once) by calculating max or squashed window a...
CpuReshapeKernel()=default
ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE(CpuReshapeKernel)
static constexpr size_t DimY
Alias for dimension 1 also known as Y dimension.
const Window & window() const
The maximum window the kernel can be executed on.
void run_op(ITensorPack &tensors, const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
Information about executing thread and CPU.
void configure(const ITensorInfo *src, ITensorInfo *dst)
Configure kernel for a given list of arguments.
Describe a multidimensional execution window.
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
size_t get_split_dimension() const
Get the preferred dimension in which the scheduler splits the work into multiple jobs.