Home
last modified time | relevance | path

Searched full:sketch (Results 1 – 25 of 234) sorted by relevance

12345678910

/external/ComputeLibrary/tests/validation/dynamic_fusion/gpu/
DIntegration.cpp28 #include "arm_compute/dynamic_fusion/sketch/attributes/CastAttributes.h"
29 #include "arm_compute/dynamic_fusion/sketch/attributes/Conv2dAttributes.h"
30 #include "arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadSketch.h"
31 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuAdd.h"
32 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuCast.h"
33 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuConv2d.h"
34 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h"
70 // Create a new workload sketch in TEST_SUITE()
73 GpuWorkloadSketch sketch{ &gpu_ctx }; in TEST_SUITE() local
77 …TensorInfo input_info = sketch.create_tensor_info(t_input_shape, 1, data_type, data_layout); in TEST_SUITE()
[all …]
/external/ComputeLibrary/src/dynamic_fusion/sketch/gpu/operators/
DGpuClamp.cpp24 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuClamp.h"
29 #include "src/dynamic_fusion/sketch/ArgumentPack.h"
30 #include "src/dynamic_fusion/sketch/gpu/GpuWorkloadSketchImpl.h"
31 #include "src/dynamic_fusion/sketch/gpu/components/cl/ClComponentActivation.h"
32 #include "src/dynamic_fusion/sketch/gpu/template_writer/cl/ClTemplateActivation.h"
97 Status GpuClamp::validate_op(const GpuWorkloadSketch &sketch, in validate_op() argument
103 // Check if tensors have valid id, i.e. they are created from a sketch in validate_op()
116 const auto op = sketch.implementation().operator_group().new_operator(operator_type, tensors); in validate_op()
117 ARM_COMPUTE_RETURN_ERROR_ON_MSG(!sketch.implementation().operator_group().try_add_operator(op), in validate_op()
121 return is_supported_op_helper(*sketch.gpu_context(), src, &dst_info_to_validate, attributes); in validate_op()
[all …]
DGpuSoftmax.cpp24 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.h"
26 #include "src/dynamic_fusion/sketch/gpu/components/cl/ClComponentLogits1DMaxShiftExpSum.h"
27 #include "src/dynamic_fusion/sketch/gpu/components/cl/ClComponentLogits1DNorm.h"
31 #include "src/dynamic_fusion/sketch/ArgumentPack.h"
32 #include "src/dynamic_fusion/sketch/gpu/GpuOperatorProperties.h"
33 #include "src/dynamic_fusion/sketch/gpu/GpuWorkloadSketchImpl.h"
100 Status GpuSoftmax::validate_op(const GpuWorkloadSketch &sketch, in validate_op() argument
123 const auto op = sketch.implementation().operator_group().new_operator(operator_type, tensors); in validate_op()
124 ARM_COMPUTE_RETURN_ERROR_ON_MSG(!sketch.implementation().operator_group().try_add_operator(op), in validate_op()
128 return is_supported_op(*sketch.gpu_context(), src, &dst_info_to_validate, attributes); in validate_op()
[all …]
DGpuPool2d.cpp29 #include "arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadContext.h"
31 #include "arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadSketch.h"
32 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuPool2d.h"
35 #include "src/dynamic_fusion/sketch/ArgumentPack.h"
36 #include "src/dynamic_fusion/sketch/gpu/GpuWorkloadSketchImpl.h"
37 #include "src/dynamic_fusion/sketch/gpu/GpuWorkloadSourceCode.h"
38 #include "src/dynamic_fusion/sketch/gpu/components/cl/ClComponentPool2d.h"
63 Status GpuPool2d::validate_op(const GpuWorkloadSketch &sketch, in validate_op() argument
85 const auto op = sketch.implementation().operator_group().new_operator(operator_type, tensors); in validate_op()
86 ARM_COMPUTE_RETURN_ERROR_ON_MSG(!sketch.implementation().operator_group().try_add_operator(op), in validate_op()
[all …]
DGpuReshape.cpp24 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuReshape.h"
28 #include "src/dynamic_fusion/sketch/ArgumentPack.h"
29 #include "src/dynamic_fusion/sketch/gpu/GpuWorkloadSketchImpl.h"
30 #include "src/dynamic_fusion/sketch/gpu/components/cl/ClComponentReshape.h"
88 Status GpuReshape::validate_op(const GpuWorkloadSketch &sketch, in validate_op() argument
106 const auto op = sketch.implementation().operator_group().new_operator(operator_type, tensors); in validate_op()
107 ARM_COMPUTE_RETURN_ERROR_ON_MSG(!sketch.implementation().operator_group().try_add_operator(op), in validate_op()
111 return is_supported_op_helper(*sketch.gpu_context(), src, &dst_info_to_validate, attributes); in validate_op()
114 ITensorInfo *GpuReshape::create_op(GpuWorkloadSketch &sketch, in create_op() argument
120 ARM_COMPUTE_ERROR_THROW_ON(GpuReshape::validate_op(sketch, src, attributes)); in create_op()
[all …]
DGpuCast.cpp24 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuCast.h"
27 #include "src/dynamic_fusion/sketch/ArgumentPack.h"
28 #include "src/dynamic_fusion/sketch/gpu/GpuWorkloadSketchImpl.h"
29 #include "src/dynamic_fusion/sketch/gpu/components/cl/ClComponentCast.h"
104 Status GpuCast::validate_op(const GpuWorkloadSketch &sketch, in validate_op() argument
122 const auto op = sketch.implementation().operator_group().new_operator(operator_type, tensors); in validate_op()
123 ARM_COMPUTE_RETURN_ERROR_ON_MSG(!sketch.implementation().operator_group().try_add_operator(op), in validate_op()
127 return is_supported_op_helper(*sketch.gpu_context(), src, &dst_info_to_validate, attributes); in validate_op()
130 ITensorInfo *GpuCast::create_op(GpuWorkloadSketch &sketch, in create_op() argument
136 ARM_COMPUTE_ERROR_THROW_ON(GpuCast::validate_op(sketch, src, attributes)); in create_op()
[all …]
DGpuOutput.cpp25 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h"
30 #include "src/dynamic_fusion/sketch/ArgumentPack.h"
31 #include "src/dynamic_fusion/sketch/gpu/GpuWorkloadSketchImpl.h"
32 #include "src/dynamic_fusion/sketch/gpu/components/cl/ClComponentStore.h"
63 Status GpuOutput::validate_op(const GpuWorkloadSketch &sketch, in validate_op() argument
83 const auto group = sketch.implementation().operator_group(); in validate_op()
89 const auto status = is_supported_op(*sketch.gpu_context(), src, dst); in validate_op()
93 void GpuOutput::create_op(GpuWorkloadSketch &sketch, in create_op() argument
98 ARM_COMPUTE_ERROR_THROW_ON(GpuOutput::validate_op(sketch, src, dst)); in create_op()
104 auto &comp_graph = sketch.implementation().component_graph(); in create_op()
[all …]
DGpuResize.cpp25 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuResize.h"
30 #include "src/dynamic_fusion/sketch/ArgumentPack.h"
31 #include "src/dynamic_fusion/sketch/gpu/GpuWorkloadSketchImpl.h"
32 #include "src/dynamic_fusion/sketch/gpu/components/cl/ClComponentResize.h"
117 Status GpuResize::validate_op(const GpuWorkloadSketch &sketch, in validate_op() argument
135 … const Operator op = sketch.implementation().operator_group().new_operator(operator_type, tensors); in validate_op()
137 ARM_COMPUTE_RETURN_ERROR_ON_MSG(!sketch.implementation().operator_group().try_add_operator(op), in validate_op()
141 return is_supported_op_helper(*sketch.gpu_context(), src, &dst_info_to_validate, attributes); in validate_op()
144 ITensorInfo *GpuResize::create_op(GpuWorkloadSketch &sketch, in create_op() argument
150 ARM_COMPUTE_ERROR_THROW_ON(GpuResize::validate_op(sketch, src, attributes)); in create_op()
[all …]
DGpuConv2d.cpp24 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuConv2d.h"
33 #include "src/dynamic_fusion/sketch/ArgumentPack.h"
34 #include "src/dynamic_fusion/sketch/gpu/GpuWorkloadSketchImpl.h"
35 #include "src/dynamic_fusion/sketch/gpu/components/cl/ClComponentDirectConv2d.h"
188 Status GpuConv2d::validate_op(const GpuWorkloadSketch &sketch, in validate_op() argument
196 // Check if tensors have valid id. I.e. they are created from a sketch in validate_op()
204 // sketch have valid ids and the DependencyGraph implementation has no notion of validness in validate_op()
219 const auto op = sketch.implementation().operator_group().new_operator(operator_type, tensors); in validate_op()
220 ARM_COMPUTE_RETURN_ERROR_ON_MSG(!sketch.implementation().operator_group().try_add_operator(op), in validate_op()
224 …return is_supported_op_helper(*sketch.gpu_context(), src, wei, bia, &dst_info_to_validate, attribu… in validate_op()
[all …]
DGpuDepthwiseConv2d.cpp24 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuDepthwiseConv2d.h"
30 #include "src/dynamic_fusion/sketch/ArgumentPack.h"
31 #include "src/dynamic_fusion/sketch/gpu/GpuWorkloadSketchImpl.h"
32 #include "src/dynamic_fusion/sketch/gpu/components/cl/ClComponentDepthwiseConv2d.h"
150 Status GpuDepthwiseConv2d::validate_op(const GpuWorkloadSketch &sketch, in validate_op() argument
177 … const Operator op = sketch.implementation().operator_group().new_operator(operator_type, tensors); in validate_op()
179 ARM_COMPUTE_RETURN_ERROR_ON_MSG(!sketch.implementation().operator_group().try_add_operator(op), in validate_op()
183 …return is_supported_op_helper(*sketch.gpu_context(), src, wei, bia, &dst_info_to_validate, attribu… in validate_op()
186 ITensorInfo *GpuDepthwiseConv2d::create_op(GpuWorkloadSketch &sketch, in create_op() argument
194 ARM_COMPUTE_ERROR_THROW_ON(GpuDepthwiseConv2d::validate_op(sketch, src, wei, bia, attributes)); in create_op()
[all …]
/external/ComputeLibrary/src/dynamic_fusion/sketch/gpu/operators/internal/
DGpuElementwiseBinaryCommon.cpp24 #include "src/dynamic_fusion/sketch/gpu/operators/internal/GpuElementwiseBinaryCommon.h"
27 #include "src/dynamic_fusion/sketch/ArgumentPack.h"
28 #include "src/dynamic_fusion/sketch/gpu/GpuWorkloadSketchImpl.h"
29 #include "src/dynamic_fusion/sketch/gpu/components/cl/ClComponentElementwiseBinary.h"
112 Status GpuElementwiseBinaryCommon::validate_op(const GpuWorkloadSketch &sketch, in validate_op() argument
132 const auto op = sketch.implementation().operator_group().new_operator(operator_type, tensors); in validate_op()
133 ARM_COMPUTE_RETURN_ERROR_ON_MSG(!sketch.implementation().operator_group().try_add_operator(op), in validate_op()
137 … return is_supported_op_helper(*sketch.gpu_context(), lhs, rhs, &dst_info_to_validate, attributes); in validate_op()
140 ITensorInfo *GpuElementwiseBinaryCommon::create_op(GpuWorkloadSketch &sketch, in create_op() argument
147 … ARM_COMPUTE_ERROR_THROW_ON(GpuElementwiseBinaryCommon::validate_op(sketch, lhs, rhs, attributes)); in create_op()
[all …]
/external/ComputeLibrary/tests/validation/fixtures/dynamic_fusion/operators/
DReshapeFixture.h30 #include "arm_compute/dynamic_fusion/sketch/attributes/ReshapeAttributes.h"
31 #include "arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadContext.h"
32 #include "arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadSketch.h"
33 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h"
34 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuReshape.h"
72 // Create a new workload sketch in compute_target()
75 GpuWorkloadSketch sketch{ &gpu_ctx }; in compute_target()
77 // Create sketch tensors in compute_target()
78 … TensorInfo src_info = sketch.create_tensor_info(TensorInfo(input_shape, 1, data_type)); in compute_target()
79 … TensorInfo dst_info = sketch.create_tensor_info(TensorInfo(output_shape, 1, data_type)); in compute_target()
[all …]
DClampFixture.h31 #include "arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadSketch.h"
32 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h"
105 // Create a new workload sketch in compute_target()
108 GpuWorkloadSketch sketch{ &gpu_ctx }; in compute_target()
110 // Create sketch tensors in compute_target()
111 TensorInfo src_info = sketch.create_tensor_info(TensorInfo(shape, 1, _data_type)); in compute_target()
112 TensorInfo dst_info = sketch.create_tensor_info(TensorInfo(shape, 1, _data_type)); in compute_target()
114 ITensorInfo *ans_0_info = FunctionType::create_op(sketch, &src_info, attributes); in compute_target()
117 ITensorInfo *ans_1_info = FunctionType::create_op(sketch, ans_0_info, attributes); in compute_target()
118 GpuOutput::create_op(sketch, ans_1_info, &dst_info); in compute_target()
[all …]
DMulFixture.h31 #include "arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadSketch.h"
32 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h"
76 // Create a new workload sketch in compute_target()
79 GpuWorkloadSketch sketch{ &gpu_ctx }; in compute_target()
82 TensorInfo lhs_info = sketch.create_tensor_info(TensorInfo(shape0, 1, _data_type)); in compute_target()
83 TensorInfo rhs_info = sketch.create_tensor_info(TensorInfo(shape1, 1, _data_type)); in compute_target()
84 TensorInfo dst_info = sketch.create_tensor_info(); in compute_target()
88 ITensorInfo *ans_info = FunctionType::create_op(sketch, &lhs_info, &rhs_info); in compute_target()
92 rhs_info_fuse = sketch.create_tensor_info(TensorInfo(shape2, 1, _data_type)); in compute_target()
93 ITensorInfo *ans2_info = FunctionType::create_op(sketch, ans_info, &rhs_info_fuse); in compute_target()
[all …]
DCastFixture.h31 #include "arm_compute/dynamic_fusion/sketch/attributes/CastAttributes.h"
32 #include "arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadSketch.h"
33 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h"
113 // Create a new workload sketch in compute_target()
116 GpuWorkloadSketch sketch{ &gpu_ctx }; in compute_target()
118 // Create sketch tensors in compute_target()
119 …TensorInfo src_info = sketch.create_tensor_info(TensorInfo(shape, 1, dt_in, DataLayout::NCHW)); //… in compute_target()
120 TensorInfo dst_info = sketch.create_tensor_info(); in compute_target()
125 ITensorInfo *ans_info = FunctionType::create_op(sketch, &src_info, attributes); in compute_target()
126 GpuOutput::create_op(sketch, ans_info, &dst_info); in compute_target()
[all …]
/external/ComputeLibrary/tests/validation/fixtures/dynamic_fusion/gpu/cl/
DDirectConv2dFixture.h33 #include "arm_compute/dynamic_fusion/sketch/attributes/Conv2dAttributes.h"
34 #include "arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadSketch.h"
35 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuConv2d.h"
36 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h"
116 // Create a new workload sketch in compute_target()
119 GpuWorkloadSketch sketch{ &gpu_ctx }; in compute_target()
121 // Create sketch tensors in compute_target()
122 …TensorInfo input_info = sketch.create_tensor_info(TensorInfo(input_shape, 1, _data_type, _data_la… in compute_target()
123 …TensorInfo weight_info = sketch.create_tensor_info(TensorInfo(weights_shape, 1, _data_type, _data_… in compute_target()
124 …TensorInfo bias_info = sketch.create_tensor_info(TensorInfo(bias_shape, 1, _data_type, _data_lay… in compute_target()
[all …]
DDepthwiseConv2dFixture.h33 #include "arm_compute/dynamic_fusion/sketch/attributes/DepthwiseConv2dAttributes.h"
34 #include "arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadSketch.h"
35 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuDepthwiseConv2d.h"
36 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h"
127 // Create a new workload sketch in compute_target()
130 GpuWorkloadSketch sketch{ &gpu_ctx }; in compute_target()
132 // Create sketch tensors in compute_target()
133 …TensorInfo input_info = sketch.create_tensor_info(TensorInfo(input_shape, 1, _data_type, _data_la… in compute_target()
134 …TensorInfo weight_info = sketch.create_tensor_info(TensorInfo(weights_shape, 1, _data_type, _data_… in compute_target()
135 …TensorInfo bias_info = sketch.create_tensor_info(TensorInfo(bias_shape, 1, _data_type, _data_lay… in compute_target()
[all …]
DElementwiseBinaryFixture.h31 #include "arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadSketch.h"
32 #include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h"
100 // Create a new workload sketch in compute_target()
103 GpuWorkloadSketch sketch{ &gpu_ctx }; in compute_target()
106 TensorInfo lhs_info = sketch.create_tensor_info(TensorInfo(shape0, 1, _data_type)); in compute_target()
107 TensorInfo rhs_info = sketch.create_tensor_info(TensorInfo(shape1, 1, _data_type)); in compute_target()
108 TensorInfo dst_info = sketch.create_tensor_info(); in compute_target()
112 ITensorInfo *ans_info = FunctionType::create_op(sketch, &lhs_info, &rhs_info); in compute_target()
116 rhs_info_fuse = sketch.create_tensor_info(TensorInfo(shape2, 1, _data_type)); in compute_target()
117 ITensorInfo *ans2_info = FunctionType::create_op(sketch, ans_info, &rhs_info_fuse); in compute_target()
[all …]
/external/ComputeLibrary/arm_compute/dynamic_fusion/sketch/gpu/operators/
DGpuReshape.h27 #include "arm_compute/dynamic_fusion/sketch/attributes/ReshapeAttributes.h"
49 /** Create an operator and fuse it into the workload sketch.
51 * @note If @ref validate_op() fails, @p sketch remains unchanged and valid.
59 * @param[in,out] sketch Workload sketch into which the operator will be fused
65 static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
79 …or and check if the its configuration is supported and if it can be fused into the workload sketch.
85 static Status validate_op(const GpuWorkloadSketch &sketch,
DGpuSoftmax.h28 #include "arm_compute/dynamic_fusion/sketch/attributes/SoftmaxAttributes.h"
47 /** Create an operator and fuse it into the workload sketch.
49 * @note If @ref validate_op() fails, @p sketch remains unchanged and valid.
60 * @param[in,out] sketch Workload sketch into which the operator will be fused
65 static void create_op(GpuWorkloadSketch &sketch,
82 …or and check if the its configuration is supported and if it can be fused into the workload sketch.
87 static Status validate_op(const GpuWorkloadSketch &sketch,
DGpuClamp.h27 #include "arm_compute/dynamic_fusion/sketch/attributes/ClampAttributes.h"
46 /** Create an operator and fuse it into the workload sketch.
48 * @note If @ref validate_op() fails, @p sketch remains unchanged and valid.
59 * @param[in, out] sketch Workload sketch into which the operator will be fused
65 static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
81 /** Validate the operator and check if it can be fused into the workload sketch.
87 static Status validate_op(const GpuWorkloadSketch &sketch,
DGpuResize.h28 #include "arm_compute/dynamic_fusion/sketch/attributes/ResizeAttributes.h"
47 /** Create an operator and fuse it into the workload sketch.
49 * @note If @ref validate_op() fails, @p sketch remains unchanged and valid.
64 * @param[in,out] sketch Workload sketch into which the operator will be fused
70 static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
84 …or and check if the its configuration is supported and if it can be fused into the workload sketch.
90 static Status validate_op(const GpuWorkloadSketch &sketch,
DGpuConv2d.h28 #include "arm_compute/dynamic_fusion/sketch/attributes/Conv2dAttributes.h"
46 /** Create an operator and fuse it into the workload sketch.
48 * @note If @ref validate_op() fails, @p sketch remains unchanged and valid.
59 * @param[in,out] sketch Workload sketch into which the operator will be fused
67 static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
87 …* Check if the operator configuration is supported and if it can be fused into the workload sketch.
93 static Status validate_op(const GpuWorkloadSketch &sketch,
DGpuDepthwiseConv2d.h27 #include "arm_compute/dynamic_fusion/sketch/attributes/DepthwiseConv2dAttributes.h"
45 /** Create an operator and fuse it into the workload sketch.
47 * @note If @ref validate_op() fails, @p sketch remains unchanged and valid.
58 * @param[in,out] sketch Workload sketch into which the operator will be fused
66 static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
88 …* Check if the operator configuration is supported and if it can be fused into the workload sketch.
94 static Status validate_op(const GpuWorkloadSketch &sketch,
DGpuPool2d.h28 #include "arm_compute/dynamic_fusion/sketch/attributes/Pool2dAttributes.h"
64 /** Create an operator and fuse it into the workload sketch.
66 * @note If @ref validate_op() fails, @p sketch remains unchanged and valid.
77 * @param[in,out] sketch Workload sketch into which the operator will be fused
83 static void create_op(GpuWorkloadSketch &sketch,
102 /** Validate the operator and check if it can be fused into the workload sketch.
105 static Status validate_op(const GpuWorkloadSketch &sketch,

12345678910