From 1e008e91b4231d5cc447ebac1ac583d4e9311873 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9C=A4=ED=98=84=EC=8B=9D/On-Device=20Lab=28SR=29/Princip?= =?utf8?q?al=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 10 Sep 2019 08:38:31 +0900 Subject: [PATCH] [exo-tflite] adding `const` to TFLNodes.h (#7307) This adds missing `const` to TFLNodes.h Signed-off-by: Hyun Sik Yoon --- compiler/exo-tflite/src/Dialect/IR/TFLNodes.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/exo-tflite/src/Dialect/IR/TFLNodes.h b/compiler/exo-tflite/src/Dialect/IR/TFLNodes.h index d0078e7..0d98b56 100644 --- a/compiler/exo-tflite/src/Dialect/IR/TFLNodes.h +++ b/compiler/exo-tflite/src/Dialect/IR/TFLNodes.h @@ -85,10 +85,10 @@ class Filter final public: Filter() : _w(1), _h(1) {} - int32_t w() { return _w; } + int32_t w() const { return _w; } void w(int32_t w) { _w = w; } - int32_t h() { return _h; } + int32_t h() const { return _h; } void h(int32_t h) { _h = h; } private: @@ -101,10 +101,10 @@ class Stride final public: Stride() : _w(1), _h(1) {} - int32_t w() { return _w; } + int32_t w() const { return _w; } void w(int32_t w) { _w = w; } - int32_t h() { return _h; } + int32_t h() const { return _h; } void h(int32_t h) { _h = h; } private: @@ -141,7 +141,7 @@ public: loco::Node *value(void) const { return at(0)->node(); } void value(loco::Node *node) { at(0)->node(node); } - FusedActFunc fusedActivationFunction() { return _fused_act_fun; } + FusedActFunc fusedActivationFunction() const { return _fused_act_fun; } void fusedActivationFunction(FusedActFunc fused_act_fun) { _fused_act_fun = fused_act_fun; } Padding padding() const { return _padding; } -- 2.7.4