From: 이한종/On-Device Lab(SR)/Engineer/삼성전자 Date: Fri, 22 Feb 2019 02:24:41 +0000 (+0900) Subject: [neurun] Explicit tag struct declaration (#4459) X-Git-Tag: submit/tizen/20190325.013700~227 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31491599757c6d33ef3e80385b13d9354f335efd;p=platform%2Fcore%2Fml%2Fnnfw.git [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 --- 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