diff options
author | Manuel Bottini <manuel.bottini@arm.com> | 2018-10-23 17:00:42 +0100 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-11-08 13:43:34 +0000 |
commit | d2048ce58a88853cee6cdd67fe0d6f09c3e212b0 (patch) | |
tree | 4107f577ab792509edd023b00003e7ef85cfacc2 /arm_compute/graph/nodes | |
parent | 0c54a62f334b6cfdca99066d8de3ed6a0b2fa15e (diff) | |
download | ComputeLibrary-d2048ce58a88853cee6cdd67fe0d6f09c3e212b0.tar.gz |
COMPMID-1638 - Add BBoxTransform to the graph API
Change-Id: I67cbbce59d61d907fc4dc4c3997e96b347dfe895
Diffstat (limited to 'arm_compute/graph/nodes')
-rw-r--r-- | arm_compute/graph/nodes/BoundingBoxTransformLayerNode.h | 60 | ||||
-rw-r--r-- | arm_compute/graph/nodes/Nodes.h | 1 | ||||
-rw-r--r-- | arm_compute/graph/nodes/NodesFwd.h | 1 |
3 files changed, 62 insertions, 0 deletions
diff --git a/arm_compute/graph/nodes/BoundingBoxTransformLayerNode.h b/arm_compute/graph/nodes/BoundingBoxTransformLayerNode.h new file mode 100644 index 0000000000..8f5c8ead7c --- /dev/null +++ b/arm_compute/graph/nodes/BoundingBoxTransformLayerNode.h @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2018 ARM Limited. + * + * SPDX-License-Identifier: MIT + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +#ifndef __ARM_COMPUTE_BOUNDING_BOX_TRANSFORM_NODE_H__ +#define __ARM_COMPUTE_BOUNDING_BOX_TRANSFORM_NODE_H__ + +#include "arm_compute/graph/INode.h" + +namespace arm_compute +{ +namespace graph +{ +/** Bounding Box Transform Layer node */ +class BoundingBoxTransformLayerNode final : public INode +{ +public: + /** Constructor + * + * @param[in] info Contains BoundingBox operation information described in @ref BoundingBoxTransformInfo. + */ + BoundingBoxTransformLayerNode(BoundingBoxTransformInfo &info); + /** BoundingBoxTransformInfo accessor + * + * @return BoundingBoxTransformInfo + */ + const BoundingBoxTransformInfo &info() const; + + // Inherited overridden methods: + NodeType type() const override; + bool forward_descriptors() override; + TensorDescriptor configure_output(size_t idx) const override; + void accept(INodeVisitor &v) override; + +private: + BoundingBoxTransformInfo _bbox_info; +}; +} // namespace graph +} // namespace arm_compute +#endif /* __ARM_COMPUTE_BOUNDING_BOX_TRANSFORM_NODE_H__ */ diff --git a/arm_compute/graph/nodes/Nodes.h b/arm_compute/graph/nodes/Nodes.h index 4e2a49db9b..6acebdc231 100644 --- a/arm_compute/graph/nodes/Nodes.h +++ b/arm_compute/graph/nodes/Nodes.h @@ -26,6 +26,7 @@ #include "arm_compute/graph/nodes/ActivationLayerNode.h" #include "arm_compute/graph/nodes/BatchNormalizationLayerNode.h" +#include "arm_compute/graph/nodes/BoundingBoxTransformLayerNode.h" #include "arm_compute/graph/nodes/ChannelShuffleLayerNode.h" #include "arm_compute/graph/nodes/ConcatenateLayerNode.h" #include "arm_compute/graph/nodes/ConstNode.h" diff --git a/arm_compute/graph/nodes/NodesFwd.h b/arm_compute/graph/nodes/NodesFwd.h index 7aed471215..e7045579d3 100644 --- a/arm_compute/graph/nodes/NodesFwd.h +++ b/arm_compute/graph/nodes/NodesFwd.h @@ -32,6 +32,7 @@ namespace graph class INode; class ActivationLayerNode; class BatchNormalizationLayerNode; +class BoundingBoxTransformLayerNode; class ChannelShuffleLayerNode; class ConcatenateLayerNode; class ConstNode; |