21.02
|
Basic interface for functions which have a single OpenGL ES kernel. More...
#include <IGCSimpleFunction.h>
Public Member Functions | |
IGCSimpleFunction (GCRuntimeContext *ctx=nullptr) | |
Default Constructor. More... | |
IGCSimpleFunction (const IGCSimpleFunction &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
IGCSimpleFunction (IGCSimpleFunction &&)=default | |
Default move constructor. More... | |
IGCSimpleFunction & | operator= (const IGCSimpleFunction &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
IGCSimpleFunction & | operator= (IGCSimpleFunction &&)=default |
Default move assignment operator. More... | |
void | run () override final |
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... | |
Basic interface for functions which have a single OpenGL ES kernel.
Definition at line 37 of file IGCSimpleFunction.h.
IGCSimpleFunction | ( | GCRuntimeContext * | ctx = nullptr | ) |
Default Constructor.
[in] | ctx | Runtime context to be used by the function |
Definition at line 31 of file IGCSimpleFunction.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move assignment operator.
|
finaloverridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 38 of file IGCSimpleFunction.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_MSG, GCScheduler::dispatch(), GCScheduler::get(), GCRuntimeContext::gpu_scheduler(), and GCScheduler::memory_barrier().
Referenced by GCFullyConnectedLayer::prepare(), GCDepthwiseConvolutionLayer3x3::run(), and GCConvolutionLayer::run().