aboutsummaryrefslogtreecommitdiff
path: root/src/graph/NodeContext.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2017-10-25 18:26:46 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit407c3e6e383affa7ebe72ce5f50fcf163ff037a3 (patch)
treec516e583fe0a2e5ee9dfc218fe10880000edcf91 /src/graph/NodeContext.cpp
parente500747b5c1d27aeffae316c8190f6d169bb2fbd (diff)
downloadComputeLibrary-407c3e6e383affa7ebe72ce5f50fcf163ff037a3.tar.gz
COMPMID-630: Rework nodes
Reworked node: -BatchNormalization -Floor -FullyConncted -L2Normalize -Normalization -Pooling -Softmax Change-Id: I4c71cfffb1f59aac3326ba8b1f831339c5244394 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93134 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/graph/NodeContext.cpp')
-rw-r--r--src/graph/NodeContext.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/graph/NodeContext.cpp b/src/graph/NodeContext.cpp
index 5b0dc6c5d8..2aa5aa13e8 100644
--- a/src/graph/NodeContext.cpp
+++ b/src/graph/NodeContext.cpp
@@ -25,6 +25,11 @@
using namespace arm_compute::graph;
+void NodeContext::set_target(TargetHint target)
+{
+ _target = target;
+}
+
void NodeContext::add_input(arm_compute::ITensor *input)
{
ARM_COMPUTE_ERROR_ON(input == nullptr);
@@ -37,7 +42,7 @@ void NodeContext::add_output(arm_compute::ITensor *output)
_outputs.emplace_back(output);
}
-std::string NodeContext::operation() const
+OperationType NodeContext::operation() const
{
return _operation;
}