From e2c82fee3b6d38f6e79412c78176792b817defd0 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 2 Oct 2017 18:51:47 +0100 Subject: COMPMID-550: Adds support for branches. Change-Id: I778007c9221ce3156400284c4039b90245eb2b7f Reviewed-on: http://mpd-gerrit.cambridge.arm.com/90043 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- arm_compute/graph/Graph.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'arm_compute/graph/Graph.h') diff --git a/arm_compute/graph/Graph.h b/arm_compute/graph/Graph.h index 9d06f44bee..4afe96b40b 100644 --- a/arm_compute/graph/Graph.h +++ b/arm_compute/graph/Graph.h @@ -25,6 +25,8 @@ #define __ARM_COMPUTE_GRAPH_GRAPH_H__ #include "arm_compute/graph/INode.h" +#include "arm_compute/graph/ITensorObject.h" +#include "arm_compute/graph/SubTensor.h" #include "arm_compute/graph/Tensor.h" #include "arm_compute/graph/Types.h" #include "support/ToolchainSupport.h" @@ -64,7 +66,7 @@ public: * * @param[in] tensor Tensor to add */ - void add_tensor(std::unique_ptr tensor); + void add_tensor_object(std::unique_ptr tensor); /** Manually sets the output of the current node * * @param[in] tmp Output info to set @@ -98,6 +100,14 @@ Graph &operator<<(Graph &graph, TensorInfo &&info); * @return Updated graph */ Graph &operator<<(Graph &graph, Tensor &&tensor); +/** Overloaded stream operator to add a sub-tensor to the graph + * + * @param[in, out] graph Graph to add the tensor + * @param[in] sub_tensor Sub-tensor to be added + * + * @return Updated graph + */ +Graph &operator<<(Graph &graph, SubTensor &&sub_tensor); /** Overloaded stream operator to provide a target hint to the graph * * @param[in, out] graph Graph to provide the hint to -- cgit v1.2.1