From 31491599757c6d33ef3e80385b13d9354f335efd Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=95=9C=EC=A2=85/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Fri, 22 Feb 2019 11:24:41 +0900 Subject: [PATCH] [neurun] Explicit tag struct declaration (#4459) Explicitly declare `struct IndexTag` which is for distinguishing what kind of index type is this. `IO::Index` and `operand::Index` were same type before since they are resolved to same `IndexTag`. (Probably `::IndexTag`). Signed-off-by: Hanjoung Lee --- runtimes/neurun/src/model/operand/Index.h | 6 ++++-- runtimes/neurun/src/model/operation/Index.h | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/runtimes/neurun/src/model/operand/Index.h b/runtimes/neurun/src/model/operand/Index.h index 1c84ba4..358a0ae 100644 --- a/runtimes/neurun/src/model/operand/Index.h +++ b/runtimes/neurun/src/model/operand/Index.h @@ -26,7 +26,8 @@ namespace model namespace operand { -using Index = ::neurun::graph::Index; +struct IndexTag; +using Index = ::neurun::graph::Index; } // namespace operand } // namespace model @@ -41,7 +42,8 @@ namespace operand namespace IO { -using Index = ::neurun::graph::Index; +struct IndexTag; +using Index = ::neurun::graph::Index; } // namespace IO } // namespace operand diff --git a/runtimes/neurun/src/model/operation/Index.h b/runtimes/neurun/src/model/operation/Index.h index e03dd74..5e0952a 100644 --- a/runtimes/neurun/src/model/operation/Index.h +++ b/runtimes/neurun/src/model/operation/Index.h @@ -26,7 +26,8 @@ namespace model namespace operation { -using Index = ::neurun::graph::Index; +struct IndexTag; +using Index = ::neurun::graph::Index; } // namespace operation } // namespace model -- 2.7.4