24.04
|
#include <ClComponentPool2d.h>
Public Types | |
using | Attributes = Pool2dAttributes |
Attributes are a set of backend-agnostic parameters that define what a component does. More... | |
using | Settings = GpuPool2dSettings |
Settings are a set of backend-specific parameters that influence the implementation of a component. More... | |
Public Types inherited from IGpuKernelComponent | |
using | Properties = KernelProperties |
Public Member Functions | |
ClComponentPool2d (ComponentId id, const Properties &properties, const ArgumentPack< ITensorInfo > &tensors, const Attributes &attributes, const Settings &settings) | |
Constructor. More... | |
~ClComponentPool2d () override | |
Destructor. More... | |
ClComponentPool2d (const ClComponentPool2d &component)=delete | |
Prevent instances of this class from being copy constructed. More... | |
ClComponentPool2d & | operator= (const ClComponentPool2d &component)=delete |
Prevent instances of this class from being copied. More... | |
ClComponentPool2d (ClComponentPool2d &&component)=default | |
Allow instances of this class to be move constructed. More... | |
ClComponentPool2d & | operator= (ClComponentPool2d &&component)=default |
Allow instances of this class to be moved. More... | |
const IGpuCkwComponentDriver * | ckw_component_driver () const override |
Get GPU kernel 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, const Settings &settings) |
Validate the component. More... | |
Definition at line 47 of file ClComponentPool2d.h.
using Attributes = Pool2dAttributes |
Attributes are a set of backend-agnostic parameters that define what a component does.
Definition at line 51 of file ClComponentPool2d.h.
using Settings = GpuPool2dSettings |
Settings are a set of backend-specific parameters that influence the implementation of a component.
Definition at line 53 of file ClComponentPool2d.h.
ClComponentPool2d | ( | ComponentId | id, |
const Properties & | properties, | ||
const ArgumentPack< ITensorInfo > & | tensors, | ||
const Attributes & | attributes, | ||
const Settings & | settings | ||
) |
Constructor.
[in] | id | Unique Component Identifier within a workload |
[in] | properties | Component properties |
[in,out] | tensors | Tensor arguments to the component |
[in] | attributes | Component attributes |
[in] | settings | Component settings |
Definition at line 89 of file ClComponentPool2d.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 GPU kernel writer for the component.
Reimplemented from IGpuKernelComponent.
Definition at line 101 of file ClComponentPool2d.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 120 of file ClComponentPool2d.h.
References arm_compute::experimental::dynamic_fusion::Complex.
|
static |
Validate the component.
[in] | properties | Component properties |
[in,out] | tensors | Tensor arguments to the component |
[in] | attributes | Component attributes |
[in] | settings | Component settings |
Tensor argument names:
Tensor argument constness:
Valid data layouts:
Valid data type configurations:
ACL_SRC_0 | ACL_DST_0 |
---|---|
F16 | F16 |
F32 | F32 |
Definition at line 43 of file ClComponentPool2d.cpp.
References arm_compute::ACL_DST_0, arm_compute::ACL_SRC_0, ARM_COMPUTE_ERROR_ON_MSG, ARM_COMPUTE_RETURN_ERROR_ON, ARM_COMPUTE_RETURN_ERROR_ON_DATA_LAYOUT_NOT_IN, 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_DIMENSIONS, ARM_COMPUTE_RETURN_ERROR_ON_MSG, ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_UNUSED, arm_compute::AVG, arm_compute::misc::shape_calculator::compute_pool_shape(), arm_compute::experimental::dynamic_fusion::convert_pool_attr_to_pool_info(), arm_compute::test::validation::dst, arm_compute::F16, arm_compute::F32, arm_compute::is_pool_region_entirely_outside_input(), arm_compute::MAX, arm_compute::NHWC, Pool2dAttributes::pool_type(), IGpuKernelComponent::properties(), arm_compute::test::validation::src, and IGpuKernelComponent::tensors().
Referenced by GpuPool2d::is_supported_op().