From f689d9e0b35c0f7d6525da4309f1d820ac2dcead Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 17 Jun 2019 12:14:05 +0900 Subject: [PATCH] [tftestinfo] isFloatTensor as a const method (#3798) isFloatTensor does not update the content of ParsedTensor. Signed-off-by: Jonghyun Park --- .../support/tftestinfo/include/nnkit/support/tftestinfo/ParsedTensor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/nnkit/libs/support/tftestinfo/include/nnkit/support/tftestinfo/ParsedTensor.h b/contrib/nnkit/libs/support/tftestinfo/include/nnkit/support/tftestinfo/ParsedTensor.h index b0770f8..a7ea5c1 100644 --- a/contrib/nnkit/libs/support/tftestinfo/include/nnkit/support/tftestinfo/ParsedTensor.h +++ b/contrib/nnkit/libs/support/tftestinfo/include/nnkit/support/tftestinfo/ParsedTensor.h @@ -90,7 +90,7 @@ public: } public: - bool isFloatTensor() { return _dtype == TF_FLOAT; } + bool isFloatTensor() const { return _dtype == TF_FLOAT; } private: Kind _kind; -- 2.7.4