From 8a99e713b01f122e9f00263c0bfff497a1792713 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: Wed, 22 May 2019 11:13:35 +0900 Subject: [PATCH] [moco/tf] use make_unique instead of new for MaxPool2D (#3572) This changes new to make_unique for MaxPool2D, which was omitted in pr #3569 Signed-off-by: Hyun Sik Yoon --- contrib/moco/lib/frontend/tf/src/Op/MaxPool2D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/moco/lib/frontend/tf/src/Op/MaxPool2D.cpp b/contrib/moco/lib/frontend/tf/src/Op/MaxPool2D.cpp index 8748868..e202647 100644 --- a/contrib/moco/lib/frontend/tf/src/Op/MaxPool2D.cpp +++ b/contrib/moco/lib/frontend/tf/src/Op/MaxPool2D.cpp @@ -170,8 +170,8 @@ void MaxPool2DGraphBuilder::build(const tensorflow::NodeDef &node, nodes->enroll(maxpool2d_name, decode_node); // Record ifm inputs to featureEncode_node - std::unique_ptr update( - new MaxPool2DGraphUpdate(encode_node, node.input(0))); + auto update = stdex::make_unique(encode_node, node.input(0)); + updates->enroll(std::move(update)); } -- 2.7.4