[mir] Add a name field to Operation::Output (#6844)
authorСергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 <s.barannikov@samsung.com>
Thu, 22 Aug 2019 11:03:37 +0000 (20:03 +0900)
committerAlexander Efimov/AI Tools Lab/./Samsung Electronics <a.efimov@samsung.com>
Thu, 22 Aug 2019 11:03:37 +0000 (14:03 +0300)
Add a name field to `Operation::Output` along with getter and setter.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
compiler/mir/include/mir/Operation.h

index 415cb56..972b00a 100644 (file)
@@ -71,11 +71,15 @@ public:
     const Shape &getShape() const { return _shape; }
     void setShape(const Shape &shape) { _shape = shape; }
 
+    const std::string &getName() const { return _name; }
+    void setName(const std::string &name) { _name = name; }
+
   private:
     Operation *_node;
     std::size_t _index;
     std::unordered_set<Input *> _consumers;
     Shape _shape;
+    std::string _name;
   };
 
   /// @brief Represents an input of a node.