23.05
|
Basic function to flatten a given input. More...
#include <ClFlatten.h>
Public Member Functions | |
void | configure (const ClCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst) |
Configure operator for a given list of arguments. More... | |
![]() | |
ICLOperator (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLOperator (const ICLOperator &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLOperator (ICLOperator &&)=default | |
Default move constructor. More... | |
ICLOperator & | operator= (const ICLOperator &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLOperator & | operator= (ICLOperator &&)=default |
Default move assignment operator. More... | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. More... | |
void | prepare (ITensorPack &constants) override |
Prepare the function for executing. More... | |
MemoryRequirements | workspace () const override |
Return the memory requirements required by the workspace. More... | |
![]() | |
virtual | ~IOperator ()=default |
Destructor. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *src, const ITensorInfo *dst) |
Static function to check if given info will lead to a valid configuration. More... | |
Basic function to flatten a given input.
Definition at line 35 of file ClFlatten.h.
void configure | ( | const ClCompileContext & | compile_context, |
const ITensorInfo * | src, | ||
ITensorInfo * | dst | ||
) |
Configure operator for a given list of arguments.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
All | All |
[in] | compile_context | The compile context to be used. |
[in] | src | Source tensor to flatten with at least 3 dimensions. The dimensions above the third will be interpreted as batches. Data types supported: All |
[in] | dst | Destination tensor with shape [w*h*d, input_batches] where: w = width input tensor, h = height input tensor and d = depth input tensor. Data type supported: same as src |
Definition at line 35 of file ClFlatten.cpp.
References ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::k.
|
static |
Static function to check if given info will lead to a valid configuration.
Similar to ClFlatten::configure()
Definition at line 43 of file ClFlatten.cpp.
References ClReshapeKernel::validate().
Referenced by CLFlattenLayer::validate(), and ClFullyConnected::validate().