24.02.1
|
Basic function to run cpu::kernels::CpuReshapeKernel. More...
#include <NEReshapeLayer.h>
Public Member Functions | |
NEReshapeLayer () | |
Default Constructor. More... | |
~NEReshapeLayer () | |
Default Destructor. More... | |
NEReshapeLayer (const NEReshapeLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEReshapeLayer (NEReshapeLayer &&) | |
Default move constructor. More... | |
NEReshapeLayer & | operator= (const NEReshapeLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEReshapeLayer & | operator= (NEReshapeLayer &&) |
Default move assignment operator. More... | |
void | configure (const ITensor *input, ITensor *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 NEReshapeLayer. More... | |
Basic function to run cpu::kernels::CpuReshapeKernel.
Definition at line 38 of file NEReshapeLayer.h.
NEReshapeLayer | ( | ) |
Default Constructor.
Definition at line 41 of file NEReshapeLayer.cpp.
|
default |
Default Destructor.
|
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.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
All | All |
[in] | input | Input tensor. Data type supported: All |
[out] | output | Output tensor. Data type supported: Same as input |
Definition at line 48 of file NEReshapeLayer.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, ITensor::info(), and arm_compute::test::validation::input.
Referenced by NEReduceMean::configure(), NEReductionOperation::configure(), and NEGenerateProposalsLayer::configure().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 66 of file NEReshapeLayer.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
Referenced by NEReduceMean::run(), NEReductionOperation::run(), and NEGenerateProposalsLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of NEReshapeLayer.
[in] | input | Input tensor info. Data type supported: All |
[in] | output | Output tensor info. Data type supported: Same as input |
Definition at line 58 of file NEReshapeLayer.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_RETURN_ON_ERROR, arm_compute::test::validation::input, and CpuReshape::validate().
Referenced by NEReductionOperation::validate(), and NEGenerateProposalsLayer::validate().