From 2532f2cbd542a319170e4ccdfa62f84e601dd43e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Thu, 6 Sep 2018 09:59:20 +0900 Subject: [PATCH] [coco] Introduce dummy dispose to AvgPool2D (#1368) This commit introduces dummy (empty) dispose method to AvgPool2D. Signed-off-by: Jonghyun Park --- contrib/coco/core/include/coco/IR/AvgPool2D.h | 3 +++ contrib/coco/core/src/IR/AvgPool2D.cpp | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/contrib/coco/core/include/coco/IR/AvgPool2D.h b/contrib/coco/core/include/coco/IR/AvgPool2D.h index 3cf6219..bb15382 100644 --- a/contrib/coco/core/include/coco/IR/AvgPool2D.h +++ b/contrib/coco/core/include/coco/IR/AvgPool2D.h @@ -24,6 +24,9 @@ public: std::set uses(void) const override; public: + void dispose(void) override; + +public: AvgPool2D *asAvgPool2D(void) override { return this; } const AvgPool2D *asAvgPool2D(void) const override { return this; } diff --git a/contrib/coco/core/src/IR/AvgPool2D.cpp b/contrib/coco/core/src/IR/AvgPool2D.cpp index 4d4d8f2..a4a140e 100644 --- a/contrib/coco/core/src/IR/AvgPool2D.cpp +++ b/contrib/coco/core/src/IR/AvgPool2D.cpp @@ -15,4 +15,10 @@ std::set AvgPool2D::uses(void) const return res; } +void AvgPool2D::dispose(void) +{ + // NOTE AvgPool2D references no object + return; +} + } // namespace coco -- 2.7.4