aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/dynamic_fusion/sketch/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/dynamic_fusion/sketch/gpu')
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadContext.h2
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuAdd.h12
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuCast.h13
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuClamp.h13
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuConv2d.h7
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuDepthwiseConv2d.h7
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuMul.h12
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h12
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuPool2d.h10
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuReshape.h13
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuResize.h13
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSigmoid.h9
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.h5
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSub.h12
-rw-r--r--arm_compute/dynamic_fusion/sketch/gpu/operators/GpuTanh.h9
15 files changed, 44 insertions, 105 deletions
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadContext.h b/arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadContext.h
index 0b60899734..38b350c7eb 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadContext.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadContext.h
@@ -85,7 +85,7 @@ public:
* @return TensorInfo Newly created tensor info
*/
template <typename... TArgs>
- TensorInfo create_tensor_info(TArgs &&... args)
+ TensorInfo create_tensor_info(TArgs &&...args)
{
auto tensor_info = TensorInfo(std::forward<TArgs>(args)...);
register_user_tensor(tensor_info);
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuAdd.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuAdd.h
index 33eded4dff..5b6c1b90ab 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuAdd.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuAdd.h
@@ -65,9 +65,7 @@ public:
*
* @return Pointer for the destination tensor info
*/
- static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *lhs,
- ITensorInfo *rhs);
+ static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *lhs, ITensorInfo *rhs);
/** Check if the operator configuration is supported, irrespective of fusion
*
* @param[in] context Workload context within which the operator is running
@@ -76,18 +74,14 @@ public:
*
* @return Status
*/
- static Status is_supported_op(const GpuWorkloadContext &context,
- const ITensorInfo *lhs,
- const ITensorInfo *rhs);
+ static Status is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *lhs, const ITensorInfo *rhs);
/** 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 @ref GpuAdd::create_op()
*
* @return Status
*/
- static Status validate_op(const GpuWorkloadSketch &sketch,
- const ITensorInfo *rhs,
- const ITensorInfo *lhs);
+ static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *rhs, const ITensorInfo *lhs);
};
} // namespace dynamic_fusion
} // namespace experimental
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuCast.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuCast.h
index 83b004b8b8..1593cec804 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuCast.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuCast.h
@@ -68,9 +68,7 @@ public:
*
* @return Pointer for the destination tensor info
*/
- static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *src,
- const Attributes &attributes);
+ static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, const Attributes &attributes);
/** Check if the operator configuration is supported, irrespective of fusion
*
* @param[in] context Workload context within which the operator is running
@@ -79,18 +77,15 @@ public:
*
* @return Status
*/
- static Status is_supported_op(const GpuWorkloadContext &context,
- const ITensorInfo *src,
- const Attributes &attributes);
+ static Status
+ is_supported_op(const GpuWorkloadContext &context, 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.
*
* Parameters are similar to @ref GpuCast::create_op()
*
* @return Status
*/
- static Status validate_op(const GpuWorkloadSketch &sketch,
- const ITensorInfo *src,
- const Attributes &attributes);
+ static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src, const Attributes &attributes);
};
} // namespace dynamic_fusion
} // namespace experimental
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuClamp.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuClamp.h
index e96251196a..5dd77bdc8e 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuClamp.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuClamp.h
@@ -62,9 +62,7 @@ public:
*
* @return Pointer for the destination tensor info
*/
- static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *src,
- const Attributes &attributes);
+ static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, const Attributes &attributes);
/** Check if the operator configuration is supported, irrespective of fusion
*
@@ -74,9 +72,8 @@ public:
*
* @return Status
*/
- static Status is_supported_op(const GpuWorkloadContext &context,
- const ITensorInfo *src,
- const Attributes &attributes);
+ static Status
+ is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *src, const Attributes &attributes);
/** Validate the operator and check if it can be fused into the workload sketch.
*
@@ -84,9 +81,7 @@ public:
*
* @return Status
*/
- static Status validate_op(const GpuWorkloadSketch &sketch,
- const ITensorInfo *src,
- const Attributes &attributes);
+ static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src, const Attributes &attributes);
};
} // namespace dynamic_fusion
} // namespace experimental
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuConv2d.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuConv2d.h
index 612cc83a1f..da7e860757 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuConv2d.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuConv2d.h
@@ -64,11 +64,8 @@ public:
*
* @return Pointer for the destination tensor info
*/
- static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *src,
- ITensorInfo *wei,
- ITensorInfo *bia,
- const Attributes &attributes);
+ static ITensorInfo *create_op(
+ GpuWorkloadSketch &sketch, ITensorInfo *src, ITensorInfo *wei, ITensorInfo *bia, const Attributes &attributes);
/** Check if the operator configuration is supported, irrespective of fusion
*
* @param[in] context Workload context within which the operator is running
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuDepthwiseConv2d.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuDepthwiseConv2d.h
index a0cb292730..958569efd7 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuDepthwiseConv2d.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuDepthwiseConv2d.h
@@ -63,11 +63,8 @@ public:
*
* @return Pointer for the destination tensor info
*/
- static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *src,
- ITensorInfo *wei,
- ITensorInfo *bia,
- const Attributes &attributes);
+ static ITensorInfo *create_op(
+ GpuWorkloadSketch &sketch, ITensorInfo *src, ITensorInfo *wei, ITensorInfo *bia, const Attributes &attributes);
/** Check if the operator configuration is supported, irrespective of fusion
*
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuMul.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuMul.h
index 3e0ebdd96c..d13e4a3cad 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuMul.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuMul.h
@@ -62,9 +62,7 @@ public:
*
* @return Pointer for the destination tensor info
*/
- static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *lhs,
- ITensorInfo *rhs);
+ static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *lhs, ITensorInfo *rhs);
/** Check if the operator configuration is supported, irrespective of fusion
*
@@ -74,9 +72,7 @@ public:
*
* @return Status
*/
- static Status is_supported_op(const GpuWorkloadContext &context,
- const ITensorInfo *lhs,
- const ITensorInfo *rhs);
+ static Status is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *lhs, const ITensorInfo *rhs);
/** Validate the operator and check if the configuration is supported and if it can be fused into the workload sketch.
*
@@ -84,9 +80,7 @@ public:
*
* @return Status
*/
- static Status validate_op(const GpuWorkloadSketch &sketch,
- const ITensorInfo *rhs,
- const ITensorInfo *lhs);
+ static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *rhs, const ITensorInfo *lhs);
};
} // namespace dynamic_fusion
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h
index 06317511cd..deb5559b9d 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuOutput.h
@@ -56,9 +56,7 @@ public:
* @param[in, out] dst Destination tensor info.
* If an uninitialized ITensorInfo is passed in, it will be auto-initialized.
*/
- static void create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *src,
- ITensorInfo *dst);
+ static void create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, ITensorInfo *dst);
/** Check if the operator configuration is supported, irrespective of fusion.
*
@@ -68,9 +66,7 @@ public:
*
* @return Status
*/
- static Status is_supported_op(const GpuWorkloadContext &context,
- const ITensorInfo *src,
- const ITensorInfo *dst);
+ static Status is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *src, const ITensorInfo *dst);
/** Validate the operator and check if the its configuration is supported and if it can be fused into the workload sketch.
*
@@ -78,9 +74,7 @@ public:
*
* @return Status
*/
- static Status validate_op(const GpuWorkloadSketch &sketch,
- const ITensorInfo *src,
- const ITensorInfo *dst);
+ static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src, const ITensorInfo *dst);
};
} // namespace dynamic_fusion
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuPool2d.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuPool2d.h
index 65a092c0a2..4d2db0e89c 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuPool2d.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuPool2d.h
@@ -55,8 +55,8 @@ public:
GpuPool2dSettings use_inf_as_limit(bool use_inf_as_limit);
private:
- bool _mixed_precision{ false };
- bool _use_inf_as_limit{ true };
+ bool _mixed_precision{false};
+ bool _use_inf_as_limit{true};
};
/** Operator interface. */
@@ -86,10 +86,8 @@ public:
* @param[in] attributes Operator attributes
* @param[in] settings Operator settings
*/
- static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *src,
- const Attributes &attributes,
- const Settings &settings);
+ static ITensorInfo *
+ create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, const Attributes &attributes, const Settings &settings);
/** Check if the operator configuration is supported, irrespective of fusion
*
* @param[in] context Workload context within which the operator is running
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuReshape.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuReshape.h
index 0f50127199..dc194fcadb 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuReshape.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuReshape.h
@@ -62,9 +62,7 @@ public:
*
* @return Pointer for the destination tensor info
*/
- static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *src,
- const Attributes &attributes);
+ static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, const Attributes &attributes);
/** Check if the operator configuration is supported, irrespective of fusion
*
* @param[in] context Workload context within which the operator is running
@@ -73,18 +71,15 @@ public:
*
* @return Status
*/
- static Status is_supported_op(const GpuWorkloadContext &context,
- const ITensorInfo *src,
- const Attributes &attributes);
+ static Status
+ is_supported_op(const GpuWorkloadContext &context, 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.
*
* Parameters are similar to @ref GpuReshape::create_op()
*
* @return Status
*/
- static Status validate_op(const GpuWorkloadSketch &sketch,
- const ITensorInfo *src,
- const Attributes &attributes);
+ static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src, const Attributes &attributes);
};
} // namespace dynamic_fusion
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuResize.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuResize.h
index 2579d10f5b..e2ece80a1d 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuResize.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuResize.h
@@ -67,9 +67,7 @@ public:
*
* @return Pointer for the destination tensor info
*/
- static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *src,
- const Attributes &attributes);
+ static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, const Attributes &attributes);
/** Check if the operator configuration is supported, irrespective of fusion
*
* @param[in] context Workload context within which the operator is running
@@ -78,18 +76,15 @@ public:
*
* @return Status
*/
- static Status is_supported_op(const GpuWorkloadContext &context,
- const ITensorInfo *src,
- const Attributes &attributes);
+ static Status
+ is_supported_op(const GpuWorkloadContext &context, 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.
*
* Parameters are similar to @ref GpuResize::create_op()
*
* @return Status
*/
- static Status validate_op(const GpuWorkloadSketch &sketch,
- const ITensorInfo *src,
- const Attributes &attributes);
+ static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src, const Attributes &attributes);
};
} // namespace dynamic_fusion
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSigmoid.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSigmoid.h
index 616a61e614..798b84b906 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSigmoid.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSigmoid.h
@@ -59,8 +59,7 @@ public:
*
* @return Pointer for the destination tensor info
*/
- static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *src);
+ static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *src);
/** Check if the operator configuration is supported, irrespective of fusion
*
@@ -69,8 +68,7 @@ public:
*
* @return Status
*/
- static Status is_supported_op(const GpuWorkloadContext &context,
- const ITensorInfo *src);
+ static Status is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *src);
/** Validate the operator and check if it can be fused into the workload sketch.
*
@@ -78,8 +76,7 @@ public:
*
* @return Status
*/
- static Status validate_op(const GpuWorkloadSketch &sketch,
- const ITensorInfo *src);
+ static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src);
};
} // namespace dynamic_fusion
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.h
index e86ef91e6a..66c2d77310 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSoftmax.h
@@ -62,10 +62,7 @@ public:
* @param[in] dst Destination tensor info.
* @param[in] attributes Operator attributes
*/
- static void create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *src,
- ITensorInfo *dst,
- const Attributes &attributes);
+ static void create_op(GpuWorkloadSketch &sketch, ITensorInfo *src, ITensorInfo *dst, const Attributes &attributes);
/** Check if the operator configuration is supported, irrespective of fusion
*
* @param[in] context Workload context within which the operator is running
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSub.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSub.h
index 6f8c2d0b76..2d9255fff2 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSub.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSub.h
@@ -65,9 +65,7 @@ public:
*
* @return Pointer for the destination tensor info
*/
- static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *lhs,
- ITensorInfo *rhs);
+ static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *lhs, ITensorInfo *rhs);
/** Check if the operator configuration is supported, irrespective of fusion
*
@@ -77,9 +75,7 @@ public:
*
* @return Status
*/
- static Status is_supported_op(const GpuWorkloadContext &context,
- const ITensorInfo *lhs,
- const ITensorInfo *rhs);
+ static Status is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *lhs, const ITensorInfo *rhs);
/** Validate the operator and check if its configuration is supported and if it can be fused into the workload sketch.
*
@@ -87,9 +83,7 @@ public:
*
* @return Status
*/
- static Status validate_op(const GpuWorkloadSketch &sketch,
- const ITensorInfo *rhs,
- const ITensorInfo *lhs);
+ static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *rhs, const ITensorInfo *lhs);
};
} // namespace dynamic_fusion
} // namespace experimental
diff --git a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuTanh.h b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuTanh.h
index 08b5032e93..9c0ce6de02 100644
--- a/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuTanh.h
+++ b/arm_compute/dynamic_fusion/sketch/gpu/operators/GpuTanh.h
@@ -59,8 +59,7 @@ public:
*
* @return Pointer for the destination tensor info
*/
- static ITensorInfo *create_op(GpuWorkloadSketch &sketch,
- ITensorInfo *src);
+ static ITensorInfo *create_op(GpuWorkloadSketch &sketch, ITensorInfo *src);
/** Check if the operator configuration is supported, irrespective of fusion
*
@@ -69,8 +68,7 @@ public:
*
* @return Status
*/
- static Status is_supported_op(const GpuWorkloadContext &context,
- const ITensorInfo *src);
+ static Status is_supported_op(const GpuWorkloadContext &context, const ITensorInfo *src);
/** Validate the operator and check if it can be fused into the workload sketch.
*
@@ -78,8 +76,7 @@ public:
*
* @return Status
*/
- static Status validate_op(const GpuWorkloadSketch &sketch,
- const ITensorInfo *src);
+ static Status validate_op(const GpuWorkloadSketch &sketch, const ITensorInfo *src);
};
} // namespace dynamic_fusion