[loco] modify struct to class (#4016)
author채성우/On-Device Lab(SR)/Engineer/삼성전자 <sw4670.chae@samsung.com>
Sun, 30 Jun 2019 23:27:22 +0000 (08:27 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Sun, 30 Jun 2019 23:27:22 +0000 (08:27 +0900)
This commit modify struct to class in Nodes.h for unity

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
contrib/loco/include/loco/IR/Nodes.h

index 112f567..93559f5 100644 (file)
@@ -198,7 +198,7 @@ private:
  *   before/after MaxPool2D node according to the semantics of the corresponding NN framework.
  * ---
  */
-struct MaxPool2D final : public FixedArityNode<1, CanonicalNodeImpl<CanonicalOpcode::MaxPool2D>>
+class MaxPool2D final : public FixedArityNode<1, CanonicalNodeImpl<CanonicalOpcode::MaxPool2D>>
 {
 public:
   Node *ifm(void) const { return at(0)->node(); }
@@ -230,7 +230,7 @@ private:
  *
  * @note Follows MaxPool2D (TODO: describe difference)
  */
-struct AvgPool2D final : public FixedArityNode<1, CanonicalNodeImpl<CanonicalOpcode::AvgPool2D>>
+class AvgPool2D final : public FixedArityNode<1, CanonicalNodeImpl<CanonicalOpcode::AvgPool2D>>
 {
 public:
   enum class Convention