24.02.1
|
#include <ClComponentElementwiseBinary.h>
Public Types | |
using | Attributes = ElementwiseBinaryCommonAttributes |
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 | |
ClComponentElementwiseBinary (ComponentId id, const Properties &properties, const ArgumentPack< ITensorInfo > &tensors, const Attributes &attributes) | |
Constructor. More... | |
~ClComponentElementwiseBinary () override | |
Destructor. More... | |
ClComponentElementwiseBinary (const ClComponentElementwiseBinary &component)=delete | |
Prevent instances of this class from being copy constructed. More... | |
ClComponentElementwiseBinary & | operator= (const ClComponentElementwiseBinary &component)=delete |
Prevent instances of this class from being copied. More... | |
ClComponentElementwiseBinary (ClComponentElementwiseBinary &&component)=default | |
Allow instances of this class to be move constructed. More... | |
ClComponentElementwiseBinary & | operator= (ClComponentElementwiseBinary &&component)=default |
Allow instances of this class to be moved. More... | |
const IGpuTemplateComponentWriter * | template_writer () 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... | |
virtual const IGpuCkwComponentDriver * | ckw_component_driver () const |
Static Public Member Functions | |
static Status | validate (const ArgumentPack< ITensorInfo > &tensors, const ElementwiseBinaryCommonAttributes &attributes) |
Validate the component. More... | |
Definition at line 49 of file ClComponentElementwiseBinary.h.
Attributes are a set of backend-agnostic parameters that define what a component does.
Definition at line 53 of file ClComponentElementwiseBinary.h.
ClComponentElementwiseBinary | ( | ComponentId | id, |
const Properties & | properties, | ||
const ArgumentPack< ITensorInfo > & | tensors, | ||
const Attributes & | attributes | ||
) |
Constructor.
Similar to ClComponentElementwiseBinary::validate()
Definition at line 115 of file ClComponentElementwiseBinary.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.
|
default |
Allow instances of this class to be moved.
|
delete |
Prevent instances of this class from being copied.
|
overridevirtual |
Get writer for the component.
Reimplemented from IGpuKernelComponent.
Definition at line 129 of file ClComponentElementwiseBinary.cpp.
|
inlineoverridevirtual |
Get component type.
Implements IGpuKernelComponent.
Definition at line 115 of file ClComponentElementwiseBinary.h.
References arm_compute::experimental::dynamic_fusion::Simple.
|
static |
Validate the component.
[in,out] | tensors | Tensor arguments to the component |
[in] | attributes | Component attributes |
Tensor argument names:
Tensor argument constness:
Valid data layouts:
Valid data type configurations (for DIV FP32/FP16/S32 supported, for POWER only FP32/FP16 supported):
ACL_SRC_0 | ACL_SRC_1 | ACL_DST_0 |
---|---|---|
F16 | F16 | F16 |
F32 | F32 | F32 |
S32 | S32 | S32 |
S16 | S16 | S16 |
U8 | U8 | U8 |
Definition at line 48 of file ClComponentElementwiseBinary.cpp.
References arm_compute::ACL_DST_0, arm_compute::ACL_SRC_0, arm_compute::ACL_SRC_1, 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_MSG, ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, TensorShape::broadcast_shape(), arm_compute::test::validation::dst, arm_compute::test::validation::dst_shape, arm_compute::F16, arm_compute::F32, arm_compute::detail::have_different_dimensions(), ElementwiseBinaryCommonAttributes::operation(), arm_compute::S16, arm_compute::S32, IGpuKernelComponent::tensors(), TensorShape::total_size(), and arm_compute::U8.