From 1868ac827ab1ac74eb957479e64c886874d36a3a 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, 21 May 2019 18:58:15 +0900 Subject: [PATCH] [moco/tf] using static for local var inside validate() (#3564) Attrs names of MaxPool2D is now static. Signed-off-by: Hyun Sik Yoon --- contrib/moco/lib/frontend/tf/src/Op/MaxPool2D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/moco/lib/frontend/tf/src/Op/MaxPool2D.cpp b/contrib/moco/lib/frontend/tf/src/Op/MaxPool2D.cpp index ccd5d81..8748868 100644 --- a/contrib/moco/lib/frontend/tf/src/Op/MaxPool2D.cpp +++ b/contrib/moco/lib/frontend/tf/src/Op/MaxPool2D.cpp @@ -61,7 +61,7 @@ bool MaxPool2DGraphBuilder::validate(const tensorflow::NodeDef &node) const { // note: even though "data_format" is not entered when a model is written, // TF seems to generate "data_format" field into a pb file - ::std::string attrs[] = {"T", "data_format", "ksize", "padding", "strides"}; + static std::string attrs[] = {"T", "data_format", "ksize", "padding", "strides"}; for (auto attr : attrs) if (!node.attr().count(attr)) -- 2.7.4