aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph/NodeContext.h
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 /arm_compute/graph/NodeContext.h
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 'arm_compute/graph/NodeContext.h')
-rw-r--r--arm_compute/graph/NodeContext.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/arm_compute/graph/NodeContext.h b/arm_compute/graph/NodeContext.h
index 8e8a761d22..bc90f217a7 100644
--- a/arm_compute/graph/NodeContext.h
+++ b/arm_compute/graph/NodeContext.h
@@ -45,11 +45,10 @@ class NodeContext
{
public:
/** Default Constructor
- * (TODO(geopin01): Should we have an enum with all the supported ops instead?)
*
* @param[in] operation Name of the operation
*/
- NodeContext(std::string operation)
+ NodeContext(OperationType operation)
: _operation(operation), _target(TargetHint::DONT_CARE), _inputs(), _outputs(), _parameters() {};
/** Sets the execution target of the node
*
@@ -75,9 +74,9 @@ public:
void add_parameter(std::string name, T parameter);
/** Returns the operation of this node.
*
- * @return The operation name
+ * @return The operation type
*/
- std::string operation() const;
+ OperationType operation() const;
/** Returns the execution target of this node
*
* @return The execution target
@@ -117,7 +116,7 @@ public:
size_t num_outputs() const;
private:
- std::string _operation;
+ OperationType _operation;
TargetHint _target;
std::vector<arm_compute::ITensor *> _inputs;
std::vector<arm_compute::ITensor *> _outputs;