diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2020-02-13 17:59:09 +0000 |
---|---|---|
committer | Michele Di Giorgio <michele.digiorgio@arm.com> | 2020-02-19 21:01:13 +0000 |
commit | 102b0ce919bf5415993cdd6b0e4385b35734d38d (patch) | |
tree | f711c876711e178a04c3684bb15e202ebf4d14ac /src/graph/nodes | |
parent | 51545e4acbb6a613da5ee19110ca8c8d7fd39776 (diff) | |
download | ComputeLibrary-102b0ce919bf5415993cdd6b0e4385b35734d38d.tar.gz |
COMPMID-3105: Update pad layer to PadV2
Adds the ability to set the padding value in the pad layer node.
Change-Id: I2f323146cbdfdfd6cfd617ee4bcafb5ffafedbbb
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2727
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/graph/nodes')
-rw-r--r-- | src/graph/nodes/PadLayerNode.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/graph/nodes/PadLayerNode.cpp b/src/graph/nodes/PadLayerNode.cpp index 1bd0776b35..cbee134caf 100644 --- a/src/graph/nodes/PadLayerNode.cpp +++ b/src/graph/nodes/PadLayerNode.cpp @@ -32,8 +32,8 @@ namespace arm_compute { namespace graph { -PadLayerNode::PadLayerNode(const PaddingList &padding) - : _padding(padding) +PadLayerNode::PadLayerNode(const PaddingList &padding, PixelValue pad_value) + : _padding(padding), _pad_value(pad_value) { _input_edges.resize(1, EmptyEdgeID); _outputs.resize(1, NullTensorID); @@ -44,6 +44,11 @@ const PaddingList &PadLayerNode::padding() const return _padding; } +PixelValue PadLayerNode::pad_value() const +{ + return _pad_value; +} + bool PadLayerNode::forward_descriptors() { if((input_id(0) != NullTensorID) && (output_id(0) != NullTensorID)) |