From 9579768078bdd5b94991b618956ef2f76b393350 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=84=B8=ED=9D=AC/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Principal=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Mon, 10 Dec 2018 15:44:00 +0900 Subject: [PATCH] [enco] caffe/frontend: const ref for layer name (#2584) This will make to use const reference for std::string type layer name for lookup method Signed-off-by: SaeHie Park --- contrib/enco/frontend/caffe/src/GraphBuilderRegistry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/enco/frontend/caffe/src/GraphBuilderRegistry.h b/contrib/enco/frontend/caffe/src/GraphBuilderRegistry.h index 407ddbb..035d32a 100644 --- a/contrib/enco/frontend/caffe/src/GraphBuilderRegistry.h +++ b/contrib/enco/frontend/caffe/src/GraphBuilderRegistry.h @@ -28,7 +28,7 @@ namespace caffeimport class GraphBuilderRegistry { public: - const GraphBuilder *lookup(std::string layer) const + const GraphBuilder *lookup(const std::string &layer) const { if (_builder_map.find(layer) == _builder_map.end()) return nullptr; -- 2.7.4