21.02
|
Basic function to run opencl::kernels::ClReshapeKernel. More...
#include <CLReshapeLayer.h>
Public Member Functions | |
CLReshapeLayer () | |
Default Constructor. More... | |
~CLReshapeLayer () | |
Default Destructor. More... | |
CLReshapeLayer (const CLReshapeLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLReshapeLayer (CLReshapeLayer &&) | |
Default move constructor. More... | |
CLReshapeLayer & | operator= (const CLReshapeLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLReshapeLayer & | operator= (CLReshapeLayer &&) |
Default move assignment operator. More... | |
void | configure (const ICLTensor *input, ICLTensor *output) |
Initialise the kernel's inputs and outputs. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output) |
Initialise the kernel's inputs and outputs. 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 CLReshapeLayer. More... | |
Basic function to run opencl::kernels::ClReshapeKernel.
Definition at line 38 of file CLReshapeLayer.h.
CLReshapeLayer | ( | ) |
Default Constructor.
Definition at line 43 of file CLReshapeLayer.cpp.
References CLReshapeLayer::operator=(), and CLReshapeLayer::~CLReshapeLayer().
|
default |
Default Destructor.
Referenced by CLReshapeLayer::CLReshapeLayer().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
Initialise the kernel's inputs and outputs.
[in] | input | First tensor input. Data type supported: All |
[out] | output | Output tensor. Data type supported: Same as input |
Definition at line 52 of file CLReshapeLayer.cpp.
References CLKernelLibrary::get().
Referenced by CLFlattenLayer::configure(), CLReduceMean::configure(), CLArgMinMaxLayer::configure(), CLReductionOperation::configure(), CLGenerateProposalsLayer::configure(), and CLGEMMDeconvolutionLayer::configure().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output | ||
) |
Initialise the kernel's inputs and outputs.
[in] | compile_context | The compile context to be used. |
[in] | input | First tensor input. Data type supported: All |
[out] | output | Output tensor. Data type supported: Same as input |
Definition at line 57 of file CLReshapeLayer.cpp.
References ITensor::info(), and arm_compute::test::validation::input.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by CLReshapeLayer::CLReshapeLayer().
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 73 of file CLReshapeLayer.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, and ITensorPack::add_tensor().
Referenced by CLGEMMDeconvolutionLayer::prepare(), CLFlattenLayer::run(), CLReduceMean::run(), CLArgMinMaxLayer::run(), CLReductionOperation::run(), and CLGenerateProposalsLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of CLReshapeLayer.
[in] | input | First tensor info. Data type supported: All |
[in] | output | Output tensor info. Data type supported: Same as input |
Definition at line 65 of file CLReshapeLayer.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_RETURN_ON_ERROR, and ClReshape::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE(), CLFlattenLayer::validate(), CLArgMinMaxLayer::validate(), CLReductionOperation::validate(), CLGEMMDeconvolutionLayer::validate(), and CLGenerateProposalsLayer::validate().