From 88d5b22eb5574d8b564474df2c758d222b3b5547 Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Fri, 6 Apr 2018 12:24:55 +0100 Subject: COMPMID-1035 - Add ResneXt50 as a graph example Change-Id: I42f0e7dab38e45b5eecfe6858eaecee8939c8585 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/129291 Reviewed-by: Georgios Pinitas Reviewed-by: Anthony Barbier Tested-by: Jenkins --- src/graph/nodes/EltwiseLayerNode.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/graph/nodes/EltwiseLayerNode.cpp') diff --git a/src/graph/nodes/EltwiseLayerNode.cpp b/src/graph/nodes/EltwiseLayerNode.cpp index 6f1e0eecd9..568b882425 100644 --- a/src/graph/nodes/EltwiseLayerNode.cpp +++ b/src/graph/nodes/EltwiseLayerNode.cpp @@ -30,8 +30,8 @@ namespace arm_compute { namespace graph { -EltwiseLayerNode::EltwiseLayerNode(EltwiseOperation op) - : _op(op) +EltwiseLayerNode::EltwiseLayerNode(EltwiseOperation op, ConvertPolicy c_policy, RoundingPolicy r_policy) + : _op(op), _convert_policy(c_policy), _rounding_policy(r_policy) { _input_edges.resize(2, EmptyEdgeID); _outputs.resize(1, NullTensorID); @@ -42,6 +42,16 @@ EltwiseOperation EltwiseLayerNode::eltwise_operation() const return _op; } +ConvertPolicy EltwiseLayerNode::convert_policy() const +{ + return _convert_policy; +} + +RoundingPolicy EltwiseLayerNode::rounding_policy() const +{ + return _rounding_policy; +} + bool EltwiseLayerNode::forward_descriptors() { if((input_id(0) != NullTensorID) && (output_id(0) != NullTensorID)) @@ -56,8 +66,7 @@ bool EltwiseLayerNode::forward_descriptors() TensorDescriptor EltwiseLayerNode::configure_output(size_t idx) const { - ARM_COMPUTE_UNUSED(idx); - ARM_COMPUTE_UNUSED(_op); + ARM_COMPUTE_UNUSED(idx, _op, _convert_policy, _rounding_policy); const Tensor *src = input(0); ARM_COMPUTE_ERROR_ON(src == nullptr); -- cgit v1.2.1