aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph/nodes/EltwiseLayerNode.h
diff options
context:
space:
mode:
authorSang-Hoon Park <sang-hoon.park@arm.com>2020-03-11 23:21:14 +0000
committerMichele Di Giorgio <michele.digiorgio@arm.com>2020-03-13 08:33:24 +0000
commit797b76b1aef38ea3be6f68ae2bf323048e9beff8 (patch)
treef78bb65ef0fe49bbb7d06225a4e7e4f2cc43cb45 /arm_compute/graph/nodes/EltwiseLayerNode.h
parent470bc1eea65560d13001e60a7f7b22b12ec89bbc (diff)
downloadComputeLibrary-797b76b1aef38ea3be6f68ae2bf323048e9beff8.tar.gz
COMPMID-3221: Add EltwiseLayerDescriptor
A new descriptor struct for EltwiseLayerNode is added to have better extendability. Change-Id: I3d0a4b3cec1f2425f39157cee6b5c344336412a3 Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2876 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Diffstat (limited to 'arm_compute/graph/nodes/EltwiseLayerNode.h')
-rw-r--r--arm_compute/graph/nodes/EltwiseLayerNode.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/arm_compute/graph/nodes/EltwiseLayerNode.h b/arm_compute/graph/nodes/EltwiseLayerNode.h
index 1ca8e9c23d..21c220a548 100644
--- a/arm_compute/graph/nodes/EltwiseLayerNode.h
+++ b/arm_compute/graph/nodes/EltwiseLayerNode.h
@@ -36,12 +36,9 @@ class EltwiseLayerNode final : public INode
public:
/** Constructor
*
- * @param[in] op Element-wise operation to perform
- * @param[in] out_quant_info (Optional) Output quantization information
- * @param[in] c_policy (Optional) Convert policy used for the operation
- * @param[in] r_policy (Optional) Rounding policy used for the operation
+ * @param[in] descriptor Containing information for the node described in @ref descriptors::EltwiseLayerDescriptor
*/
- EltwiseLayerNode(EltwiseOperation op, QuantizationInfo out_quant_info = QuantizationInfo(), ConvertPolicy c_policy = ConvertPolicy::SATURATE, RoundingPolicy r_policy = RoundingPolicy::TO_ZERO);
+ EltwiseLayerNode(const descriptors::EltwiseLayerDescriptor &descriptor);
/** Eltwise operation accessor
*
* @return Eltwise operation that is to be performed by the node
@@ -67,10 +64,7 @@ public:
void accept(INodeVisitor &v) override;
private:
- EltwiseOperation _op;
- QuantizationInfo _out_quant_info;
- ConvertPolicy _convert_policy;
- RoundingPolicy _rounding_policy;
+ descriptors::EltwiseLayerDescriptor descriptor;
};
} // namespace graph
} // namespace arm_compute