From b14d6d40bffd7b47b9e537fa9f3814540d9b9239 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=91=D0=B0=D1=80?= =?utf8?q?=D0=B0=D0=BD=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2/AI=20Tools=20Lab=20/S?= =?utf8?q?RR/Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Thu, 22 Aug 2019 20:03:37 +0900 Subject: [PATCH] [mir] Add a name field to Operation::Output (#6844) Add a name field to `Operation::Output` along with getter and setter. Signed-off-by: Sergei Barannikov --- compiler/mir/include/mir/Operation.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/mir/include/mir/Operation.h b/compiler/mir/include/mir/Operation.h index 415cb56..972b00a 100644 --- a/compiler/mir/include/mir/Operation.h +++ b/compiler/mir/include/mir/Operation.h @@ -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 _consumers; Shape _shape; + std::string _name; }; /// @brief Represents an input of a node. -- 2.7.4