24.02.1
|
Basic function to run opencl::kernels::ClFloorKernel. More...
#include <CLFloor.h>
Public Member Functions | |
CLFloor () | |
Constructor. More... | |
~CLFloor () | |
Destructor. More... | |
CLFloor (const CLFloor &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLFloor (CLFloor &&) | |
Default move constructor. More... | |
CLFloor & | operator= (const CLFloor &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLFloor & | operator= (CLFloor &&) |
Default move assignment operator. More... | |
void | configure (const ICLTensor *input, ICLTensor *output) |
Set the source, destination of the kernel. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output) |
Set the source, destination of the kernel. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *output) |
Static function to check if given info will lead to a valid configuration of CLFloor. More... | |
Basic function to run opencl::kernels::ClFloorKernel.
CLFloor | ( | ) |
Constructor.
Definition at line 43 of file CLFloor.cpp.
|
default |
Destructor.
Prevent instances of this class from being copied (As this class contains pointers)
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output | ||
) |
Set the source, destination of the kernel.
[in] | compile_context | The compile context to be used. |
[in] | input | Source tensor. Data type supported: F16/F32. |
[out] | output | Destination tensor. Same as input |
Definition at line 55 of file CLFloor.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, and arm_compute::test::validation::input.
Set the source, destination of the kernel.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
F32 | F32 |
F16 | F16 |
[in] | input | Source tensor. Data type supported: F16/F32. |
[out] | output | Destination tensor. Same as input |
Definition at line 50 of file CLFloor.cpp.
References CLKernelLibrary::get(), and arm_compute::test::validation::input.
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 71 of file CLFloor.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
|
static |
Static function to check if given info will lead to a valid configuration of CLFloor.
[in] | input | Source tensor info. Data type supported: F16/F32. |
[in] | output | Destination tensor info. Same as input |
Definition at line 66 of file CLFloor.cpp.
References arm_compute::test::validation::input, and ClFloor::validate().