23.11
|
Basic function to run kernels::CpuActivationKernel. More...
#include <CpuActivation.h>
Public Member Functions | |
void | configure (const ITensorInfo *input, ITensorInfo *output, const ActivationLayerInfo &activation_info) |
Configure operator for a given list of arguments. More... | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. More... | |
![]() | |
INEOperator (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
INEOperator (const INEOperator &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INEOperator (INEOperator &&)=default | |
Default move constructor. More... | |
INEOperator & | operator= (const INEOperator &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INEOperator & | operator= (INEOperator &&)=default |
Default move assignment operator. More... | |
~INEOperator () | |
Default destructor. 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 *input, const ITensorInfo *output, const ActivationLayerInfo &act_info) |
Static function to check if given info will lead to a valid configuration. More... | |
Basic function to run kernels::CpuActivationKernel.
Definition at line 36 of file CpuActivation.h.
void configure | ( | const ITensorInfo * | input, |
ITensorInfo * | output, | ||
const ActivationLayerInfo & | activation_info | ||
) |
Configure operator for a given list of arguments.
[in] | input | Source tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM16/F16/F32. |
[out] | output | Destination tensor info. Data type supported: same as src |
[in] | activation_info | Activation layer parameters. |
Definition at line 38 of file CpuActivation.cpp.
References ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::input.
|
overridevirtual |
Run the kernels contained in the function.
[in] | tensors | Vector that contains the tensors to operate on. |
Reimplemented from INEOperator.
Definition at line 52 of file CpuActivation.cpp.
References ARM_COMPUTE_ERROR_ON_MSG, ITensorPack::empty(), Scheduler::get(), and IScheduler::schedule_op().
|
static |
Static function to check if given info will lead to a valid configuration.
Similar to CpuActivation::configure()
Definition at line 47 of file CpuActivation.cpp.
References arm_compute::test::validation::input, and CpuActivationKernel::validate().
Referenced by CpuContext::create_activation(), CpuDirectConv3d::validate(), CpuDirectConv2d::validate(), NEActivationLayer::validate(), CpuGemm::validate(), and CpuGemmLowpMatrixMultiplyCore::validate().