aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph/NodeContext.h
diff options
context:
space:
mode:
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;