aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph/Graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/graph/Graph.h')
-rw-r--r--arm_compute/graph/Graph.h12
1 files changed, 11 insertions, 1 deletions
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> tensor);
+ void add_tensor_object(std::unique_ptr<ITensorObject> 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