24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CL_ELEMENTWISE_KERNEL_H
25 #define ARM_COMPUTE_CL_ELEMENTWISE_KERNEL_H
59 virtual std::string name() = 0;
69 virtual std::pair<Status, Window>
124 std::string name()
override;
125 std::pair<Status, Window>
174 std::string name()
override;
175 std::pair<Status, Window>
179 std::string generate_id_for_tuning(
const std::string &
kernel_name,
224 std::string name()
override;
225 std::pair<Status, Window>
static Status validate(ArithmeticOperation op, const ITensorInfo *src1, const ITensorInfo *src2, const ITensorInfo *dst, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration.
ClArithmeticKernel()=default
ClLogicalBinaryKernel()=default
Activation Layer Information class.
void configure(const ClCompileContext &compile_context, LogicalOperation op, ITensorInfo *src1, ITensorInfo *src2, ITensorInfo *dst)
Function to configure kernel.
void configure(const ClCompileContext &compile_context, ArithmeticOperation op, ITensorInfo *input1, ITensorInfo *input2, ITensorInfo *output, const ConvertPolicy &policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of ClSaturatedArithmeticKer...
ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE(ClLogicalBinaryKernel)
void run_op(ITensorPack &tensors, const Window &window, ::cl::CommandQueue &queue) override
Common interface for all the OpenCL kernels.
const Window & window() const
The maximum window the kernel can be executed on.
ClSaturatedArithmeticKernel()=default
Describe a multidimensional execution window.
Copyright (c) 2017-2024 Arm Limited.
ConvertPolicy
Policy to handle integer overflow.
ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE(ClSaturatedArithmeticKernel)
ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE(ClArithmeticKernel)
static Status validate(LogicalOperation op, const ITensorInfo *src1, const ITensorInfo *src2, const ITensorInfo *dst)
Static function to check if given info will lead to a valid configuration.
static Status validate(ArithmeticOperation op, const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, const ConvertPolicy &policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration.
Store the tensor's metadata.
void configure(const ClCompileContext &compile_context, ArithmeticOperation op, ITensorInfo *src1, ITensorInfo *src2, ITensorInfo *dst, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of ClArithmeticKernel.
ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE(ClElementwiseKernel)
LogicalOperation
List of supported logical operations.
Interface for an element-wise operation kernel.
ArithmeticOperation
Available element-wise operations.