24.04
|
#include <ClComponentActivation.h>
Public Types | |
using | Attributes = ActivationLayerInfo |
Attributes are a set of backend-agnostic parameters that define what a component does. More... | |
Public Types inherited from IGpuKernelComponent | |
using | Properties = KernelProperties |
Public Member Functions | |
ClComponentActivation (ComponentId id, const Properties &properties, const ArgumentPack< ITensorInfo > &tensors, const Attributes &attributes) | |
Constructor. More... | |
~ClComponentActivation () override | |
Destructor. More... | |
ClComponentActivation (const ClComponentActivation &component)=delete | |
Prevent instances of this class from being copy constructed. More... | |
ClComponentActivation & | operator= (const ClComponentActivation &component)=delete |
Prevent instances of this class from being copied. More... | |
ClComponentActivation (ClComponentActivation &&component)=default | |
Allow instances of this class to be move constructed. More... | |
ClComponentActivation & | operator= (ClComponentActivation &&component)=default |
Allow instances of this class to be moved. More... | |
const IGpuCkwComponentDriver * | ckw_component_driver () const override |
Get writer for the component. More... | |
GpuComponentType | type () const override |
Get component type. More... | |
Public Member Functions inherited from IGpuKernelComponent | |
IGpuKernelComponent (ComponentId id, const Properties &properties, const ArgumentPack< ITensorInfo > &tensors) | |
Constructor. More... | |
virtual | ~IGpuKernelComponent () |
Destructor. More... | |
ComponentId | id () const |
Get component id. More... | |
ArgumentPack< ITensorInfo > | tensors () const |
Get tensor arguments. More... | |
Properties | properties () const |
Get properties. More... | |
Static Public Member Functions | |
static Status | validate (const Properties &properties, const ArgumentPack< ITensorInfo > &tensors, const Attributes &attributes) |
Validate the component. More... | |
Definition at line 46 of file ClComponentActivation.h.
using Attributes = ActivationLayerInfo |
Attributes are a set of backend-agnostic parameters that define what a component does.
Definition at line 50 of file ClComponentActivation.h.
ClComponentActivation | ( | ComponentId | id, |
const Properties & | properties, | ||
const ArgumentPack< ITensorInfo > & | tensors, | ||
const Attributes & | attributes | ||
) |
Constructor.
Similar to ClComponentActivation::validate()
Definition at line 63 of file ClComponentActivation.cpp.
References IGpuKernelComponent::id(), IGpuKernelComponent::properties(), and IGpuKernelComponent::tensors().
|
override |
|
delete |
Prevent instances of this class from being copy constructed.
|
default |
Allow instances of this class to be move constructed.
|
overridevirtual |
Get writer for the component.
Reimplemented from IGpuKernelComponent.
Definition at line 76 of file ClComponentActivation.cpp.
|
default |
Allow instances of this class to be moved.
|
delete |
Prevent instances of this class from being copied.
|
inlineoverridevirtual |
Get component type.
Implements IGpuKernelComponent.
Definition at line 108 of file ClComponentActivation.h.
References arm_compute::experimental::dynamic_fusion::Simple.
|
static |
Validate the component.
[in] | properties | Component properties Properties |
[in,out] | tensors | Tensor arguments to the component |
[in] | attributes | Component attributes Attributes |
Tensor argument names:
Tensor argument constness:
Valid data layouts:
Valid data type configurations:
ACL_SRC | ACL_DST |
---|---|
F16 | F16 |
F32 | F32 |
Definition at line 35 of file ClComponentActivation.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, ARM_COMPUTE_RETURN_ERROR_ON, ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, ARM_COMPUTE_RETURN_ERROR_ON_F16_UNSUPPORTED, ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_LAYOUT, ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES, ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_SHAPES, ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_UNUSED, arm_compute::test::validation::dst, arm_compute::F16, arm_compute::F32, IGpuKernelComponent::properties(), arm_compute::test::validation::src, and IGpuKernelComponent::tensors().