24.02.1
|
Go to the documentation of this file.
24 #ifndef ACL_SRC_CPU_KERNELS_CPUACTIVATIONKERNEL_H
25 #define ACL_SRC_CPU_KERNELS_CPUACTIVATIONKERNEL_H
43 using ActivationKernelPtr =
74 size_t get_mws(
const CPUInfo &platform,
size_t thread_count)
const override;
78 const char *
name()
const override;
86 return _split_dimension;
100 ActivationKernelPtr _run_method{
nullptr};
107 #endif // ACL_SRC_CPU_KERNELS_CPUACTIVATIONKERNEL_H
SimpleTensor< float > src
void run_op(ITensorPack &tensors, const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
decltype(strategy::transforms) typedef type
std::add_pointer< bool(const ActivationDataTypeISASelectorData &data)>::type ActivationDataTypeISASelectorDataPtr
static const std::vector< ActivationKernel > & get_available_kernels()
Interface for CPU tensor.
size_t get_mws(const CPUInfo &platform, size_t thread_count) const override
Return minimum workload size of the relevant kernel.
const ActivationDataTypeISASelectorDataPtr is_selected
const char * name() const override
Name of the kernel.
Activation Layer Information class.
ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE(CpuActivationKernel)
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, const ActivationLayerInfo &act_info)
Static function to check if given info will lead to a valid configuration.
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.
Information about executing thread and CPU.
void configure(const ITensorInfo *src, ITensorInfo *dst, ActivationLayerInfo activation_info)
Configure kernel for a given list of arguments.
CpuActivationKernel()=default
Describe a multidimensional execution window.
size_t get_split_dimension_hint() const
Get the preferred dimension in which the scheduler splits the work into multiple jobs.
Copyright (c) 2017-2024 Arm Limited.
Interface for the activation kernel.
ActivationKernelPtr ukernel
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)