24.04
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CLELEMENTWISEOPERATIONS_H
25 #define ARM_COMPUTE_CLELEMENTWISEOPERATIONS_H
34 class CLCompileContext;
156 std::unique_ptr<Impl> _impl;
278 std::unique_ptr<Impl> _impl;
357 std::unique_ptr<Impl> _impl;
443 std::unique_ptr<Impl> _impl;
529 std::unique_ptr<Impl> _impl;
613 std::unique_ptr<Impl> _impl;
692 std::unique_ptr<Impl> _impl;
void configure(ICLTensor *input1, ICLTensor *input2, ICLTensor *output, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Initialise the kernel's inputs, output and conversion policy.
void configure(const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Initialise the kernel's inputs, output and conversion policy.
~CLElementwiseSquaredDiff()
Default Destructor.
void run() override
Run the kernels contained in the function.
void configure(ICLTensor *input1, ICLTensor *input2, ICLTensor *output, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Initialise the kernel's inputs, output and conversion policy.
~CLArithmeticSubtraction()
Default Destructor.
Basic function to run opencl::kernels::ClArithmeticKernel for min.
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of opencl::kernels::ClArith...
Base class for all functions.
CLElementwiseSquaredDiff()
Default Constructor.
CLElementwiseMin & operator=(const CLElementwiseMin &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
Interface for OpenCL tensor.
CLArithmeticDivision & operator=(const CLArithmeticDivision &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
CLElementwisePower()
Default Constructor.
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of opencl::kernels::ClArith...
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of CLArithmeticDivision.
CLArithmeticDivision()
Default Constructor.
Basic function to run opencl::kernels::ClArithmeticKernel for max.
CLElementwiseMin()
Default Constructor.
Activation Layer Information class.
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of opencl::kernels::ClArith...
void run() override
Run the kernels contained in the function.
~CLArithmeticAddition()
Default Destructor.
~CLElementwisePower()
Default Destructor.
CLElementwiseMax & operator=(const CLElementwiseMax &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
CLArithmeticAddition & operator=(const CLArithmeticAddition &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
void configure(ICLTensor *input1, ICLTensor *input2, ICLTensor *output, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Initialise the kernel's inputs, output and conversion policy.
Basic function to run opencl::kernels::ClSaturatedArithmeticKernel for division.
void configure(ICLTensor *input1, ICLTensor *input2, ICLTensor *output, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Initialise the kernel's inputs, output and conversion policy.
~CLElementwiseMin()
Default Destructor.
CLArithmeticAddition()
Default Constructor.
void run() override
Run the kernels contained in the function.
CLElementwiseMax()
Default Constructor.
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of opencl::kernels::ClSatur...
void run() override
Run the kernels contained in the function.
CLArithmeticSubtraction()
Default Constructor.
CLElementwiseSquaredDiff & operator=(const CLElementwiseSquaredDiff &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
~CLArithmeticDivision()
Default Destructor.
CLArithmeticSubtraction & operator=(const CLArithmeticSubtraction &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
Basic function to run opencl::kernels::ClSaturatedArithmeticKernel for subtraction.
Copyright (c) 2017-2024 Arm Limited.
void run() override
Run the kernels contained in the function.
ConvertPolicy
Policy to handle integer overflow.
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of opencl::kernels::ClArith...
Basic function to run opencl::kernels::ClSaturatedArithmeticKernel for addition.
CLElementwisePower & operator=(const CLElementwisePower &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
void configure(ICLTensor *input1, ICLTensor *input2, ICLTensor *output, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Initialise the kernel's inputs, output.
Store the tensor's metadata.
void run() override
Run the kernels contained in the function.
Basic function to run opencl::kernels::ClArithmeticKernel for squared difference.
Basic function to run opencl::kernels::ClArithmeticKernel for power.
void configure(ICLTensor *input1, ICLTensor *input2, ICLTensor *output, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Initialise the kernel's inputs, output and conversion policy.
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of opencl::kernels::ClSatur...
~CLElementwiseMax()
Default Destructor.
void run() override
Run the kernels contained in the function.