24.02.1
|
Go to the documentation of this file.
27 #ifndef ACL_INTERNAL_TEST_CKW_IN_DF
29 #else //ACL_INTERNAL_TEST_CKW_IN_DF
31 #endif //ACL_INTERNAL_TEST_CKW_IN_DF
35 namespace experimental
37 namespace dynamic_fusion
72 #ifndef ACL_INTERNAL_TEST_CKW_IN_DF
73 _component_writer{std::make_unique<ClTemplateActivation>(
id, tensors, attributes)}
74 #else //ACL_INTERNAL_TEST_CKW_IN_DF
75 _component_writer{std::make_unique<GpuCkwActivation>(
id, tensors, attributes)}
76 #endif //ACL_INTERNAL_TEST_CKW_IN_DF
84 #ifndef ACL_INTERNAL_TEST_CKW_IN_DF
86 #else //ACL_INTERNAL_TEST_CKW_IN_DF
88 #endif //ACL_INTERNAL_TEST_CKW_IN_DF
90 return _component_writer.get();
SimpleTensor< float > src
ClComponentActivation(ComponentId id, const Properties &properties, const ArgumentPack< ITensorInfo > &tensors, const Attributes &attributes)
Constructor.
#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_SHAPES(...)
An interface used by ClTemplateWriter to write source code for a kernel component.
This is a generic class that packs the arguments of an operator.
#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(...)
#define ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(t, c,...)
Activation Layer Information class.
virtual const IGpuCkwComponentDriver * ckw_component_driver() const
Properties common to all kernel component types.
#define ARM_COMPUTE_RETURN_ERROR_ON(cond)
If the condition is true, an error is returned.
#define ARM_COMPUTE_RETURN_ERROR_ON_F16_UNSUPPORTED(tensor)
Properties properties() const
Get properties.
#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_LAYOUT(...)
An interface used by GpuCkwDriver to write source code for a kernel component.
const IGpuTemplateComponentWriter * template_writer() const override
Get writer for the component.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
int32_t ComponentId
Uniquely identifies a kernel component within a workload.
Copyright (c) 2017-2024 Arm Limited.
@ F16
16-bit floating-point number
An abstract interface of a component.
#define ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(...)
~ClComponentActivation() override
Destructor.
Store the tensor's metadata.
static Status validate(const Properties &properties, const ArgumentPack< ITensorInfo > &tensors, const Attributes &attributes)
Validate the component.
@ F32
32-bit floating-point number
ArgumentPack< ITensorInfo > tensors() const
Get tensor arguments.
ComponentId id() const
Get component id.