24.04
|
#include <GpuReshape.h>
Public Types | |
using | Attributes = ReshapeAttributes |
Attributes are a set of backend-agnostic parameters that define what an operator does. More... | |
Static Public Member Functions | |
static ITensorInfo * | create_op (GpuWorkloadSketch &sketch, ITensorInfo *src, const Attributes &attributes) |
Create an operator and fuse it into the workload sketch. More... | |
static Status | is_supported_op (const GpuWorkloadContext &context, const ITensorInfo *src, const Attributes &attributes) |
Check if the operator configuration is supported, irrespective of fusion. More... | |
static Status | validate_op (const GpuWorkloadSketch &sketch, const ITensorInfo *src, const Attributes &attributes) |
Validate the operator and check if the its configuration is supported and if it can be fused into the workload sketch. More... | |
Operator interface.
Definition at line 43 of file GpuReshape.h.
using Attributes = ReshapeAttributes |
Attributes are a set of backend-agnostic parameters that define what an operator does.
Definition at line 47 of file GpuReshape.h.
|
static |
Create an operator and fuse it into the workload sketch.
sketch
remains unchanged and valid.Valid data type configurations:
Valid data layouts:
[in,out] | sketch | Workload sketch into which the operator will be fused |
[in] | src | Input tensor info. Data type supported: All |
[in] | attributes | Operator attributes |
Definition at line 113 of file GpuReshape.cpp.
References arm_compute::ACL_DST_0, arm_compute::ACL_SRC_0, ArgumentPack< T >::add_const_tensor(), GpuOperatorGroup::add_operator(), ArgumentPack< T >::add_tensor(), ARM_COMPUTE_ERROR, ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_THROW_ON, ARM_COMPUTE_LOG_PARAMS, ARM_COMPUTE_UNUSED, arm_compute::auto_init_if_empty(), GpuWorkloadContext::cl_compile_context(), GpuWorkloadSketch::Implementation::component_graph(), GpuWorkloadSketch::Implementation::context(), GpuWorkloadSketch::Implementation::create_virtual_tensor(), arm_compute::test::validation::dst, GpuWorkloadSketch::implementation(), GpuOperatorGroup::new_operator(), arm_compute::experimental::dynamic_fusion::OpenCL, GpuWorkloadSketch::Implementation::operator_group(), UnitWorkloadStage::Run, ReshapeAttributes::shape(), arm_compute::test::validation::sketch, arm_compute::test::validation::src, and GpuReshape::validate_op().
|
static |
Check if the operator configuration is supported, irrespective of fusion.
[in] | context | Workload context within which the operator is running |
[in] | src | Input tensor info. |
[in] | attributes | Operator attributes |
Definition at line 84 of file GpuReshape.cpp.
References arm_compute::test::validation::context, and arm_compute::test::validation::src.
|
static |
Validate the operator and check if the its configuration is supported and if it can be fused into the workload sketch.
Parameters are similar to GpuReshape::create_op()
Definition at line 89 of file GpuReshape.cpp.
References arm_compute::ACL_DST_0, arm_compute::ACL_SRC_0, ArgumentPack< T >::add_const_tensor(), ARM_COMPUTE_RETURN_ERROR_ON, ARM_COMPUTE_RETURN_ERROR_ON_MSG, ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, arm_compute::auto_init_if_empty(), GpuWorkloadSketch::gpu_context(), GpuWorkloadSketch::implementation(), GpuOperatorGroup::new_operator(), GpuWorkloadSketch::Implementation::operator_group(), ReshapeAttributes::shape(), arm_compute::test::validation::sketch, arm_compute::test::validation::src, and GpuOperatorGroup::try_add_operator().
Referenced by GpuReshape::create_op().