aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/runtime')
-rw-r--r--arm_compute/runtime/CL/functions/CLActivationLayer.h11
-rw-r--r--arm_compute/runtime/NEON/functions/NEActivationLayer.h11
2 files changed, 14 insertions, 8 deletions
diff --git a/arm_compute/runtime/CL/functions/CLActivationLayer.h b/arm_compute/runtime/CL/functions/CLActivationLayer.h
index 6468c996a2..3028afb25b 100644
--- a/arm_compute/runtime/CL/functions/CLActivationLayer.h
+++ b/arm_compute/runtime/CL/functions/CLActivationLayer.h
@@ -41,11 +41,14 @@ class CLActivationLayer : public ICLSimpleFunction
public:
/** Set the input and output tensor.
*
- * @param[in] input Source tensor. Data types supported: F16, F32, U16, S16.
- * @param[out] output Destination tensor. Data type should match the input data type.
- * @param[in] act_info Activation layer parameters.
+ * @note If the output tensor is a nullptr, the activation function will be performed in-place
+ *
+ * @param[in, out] input Source tensor. In case of @p output tensor = nullptr, this tensor will store the result
+ * of the activation function. Data types supported: F16/F32.
+ * @param[out] output Destination tensor. Data type should match the input data type.
+ * @param[in] act_info Activation layer parameters.
*/
- void configure(const ICLTensor *input, ICLTensor *output, ActivationLayerInfo act_info);
+ void configure(ICLTensor *input, ICLTensor *output, ActivationLayerInfo act_info);
};
}
#endif /* __ARM_COMPUTE_CLACTIVATIONLAYER_H__ */
diff --git a/arm_compute/runtime/NEON/functions/NEActivationLayer.h b/arm_compute/runtime/NEON/functions/NEActivationLayer.h
index 35366e16fb..b1a211553d 100644
--- a/arm_compute/runtime/NEON/functions/NEActivationLayer.h
+++ b/arm_compute/runtime/NEON/functions/NEActivationLayer.h
@@ -41,11 +41,14 @@ class NEActivationLayer : public INESimpleFunction
public:
/** Set the input and output tensor.
*
- * @param[in] input Source tensor. Data type supported: QS8/F32.
- * @param[out] output Destination tensor. Data type supported: same as @p input
- * @param[in] activation_info Activation layer parameters.
+ * @note If the output tensor is a nullptr, the activation function will be performed in-place
+ *
+ * @param[in, out] input Source tensor. In case of @p output tensor = nullptr, this tensor will store the result
+ * of the activation function. Data types supported: QS8/F32.
+ * @param[out] output Destination tensor. Data type supported: same as @p input
+ * @param[in] activation_info Activation layer parameters.
*/
- void configure(const ITensor *input, ITensor *output, ActivationLayerInfo activation_info);
+ void configure(ITensor *input, ITensor *output, ActivationLayerInfo activation_info);
};
}
#endif /* __ARM_COMPUTE_NEACTIVATIONLAYER_H__ */