24.04
|
#include <ClComponentCast.h>
Public Types | |
using | Attributes = CastAttributes |
Attributes are a set of backend-agnostic parameters that define what a component does. More... | |
using | Settings = ClComponentCastSettings |
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 | |
ClComponentCast (ComponentId id, const Properties &properties, const ArgumentPack< ITensorInfo > &tensors, const Attributes &attributes, const Settings &settings) | |
Constructor. More... | |
~ClComponentCast () override | |
Destructor. More... | |
ClComponentCast (const ClComponentCast &component)=delete | |
Prevent instances of this class from being copy constructed. More... | |
ClComponentCast & | operator= (const ClComponentCast &component)=delete |
Prevent instances of this class from being copied. More... | |
ClComponentCast (ClComponentCast &&component)=default | |
Allow instances of this class to be move constructed. More... | |
ClComponentCast & | operator= (ClComponentCast &&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, const Settings &settings) |
Validate the component. More... | |
Definition at line 54 of file ClComponentCast.h.
using Attributes = CastAttributes |
Attributes are a set of backend-agnostic parameters that define what a component does.
Definition at line 58 of file ClComponentCast.h.
using Settings = ClComponentCastSettings |
Settings are a set of backend-specific parameters that influence the implementation of a component.
Definition at line 60 of file ClComponentCast.h.
ClComponentCast | ( | ComponentId | id, |
const Properties & | properties, | ||
const ArgumentPack< ITensorInfo > & | tensors, | ||
const Attributes & | attributes, | ||
const Settings & | settings | ||
) |
Constructor.
Similar to ClComponentCast::validate()
Definition at line 65 of file ClComponentCast.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 80 of file ClComponentCast.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 121 of file ClComponentCast.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 |
[in] | settings | Component settings Settings |
Tensor argument names:
Tensor argument constness:
Valid data layouts:
All
Valid data type configurations:
ACL_SRC_0 | ACL_DST_0 |
---|---|
U8 | S8, U16, S16, U32, S32, F16, F32 |
U16 | U8, S8, S16, U32, S32, F16, F32 |
S16 | U8, S8, U16, U32, S32, F16, F32 |
U32 | U8, S8, U16, S16, S32, F16, F32 |
S32 | U8, S8, U16, S16, U32, F16, F32 |
F16 | U8, S8, U16, S16, U32, S32, F32 |
F32 | U8, S8, U16, S16, U32, S32, F16 |
Definition at line 38 of file ClComponentCast.cpp.
References arm_compute::ACL_DST_0, arm_compute::ACL_SRC_0, ARM_COMPUTE_RETURN_ERROR_ON, ARM_COMPUTE_RETURN_ERROR_ON_F16_UNSUPPORTED, ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_SHAPES, ARM_COMPUTE_RETURN_ERROR_ON_MSG, ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_UNUSED, CastAttributes::data_type(), arm_compute::test::validation::dst, IGpuKernelComponent::properties(), arm_compute::test::validation::src, and IGpuKernelComponent::tensors().