[caffegen] Introduce 'internal' directory (#121)
author박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 23 Apr 2018 23:53:15 +0000 (08:53 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 23 Apr 2018 23:53:15 +0000 (08:53 +0900)
This commit introduces 'internal' directory which contains all the code
that helps users to access the internal of caffe models.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
22 files changed:
contrib/caffegen/include/internal/BlobContext.h [moved from contrib/caffegen/include/BlobContext.h with 100% similarity]
contrib/caffegen/include/internal/BlobShape.h [moved from contrib/caffegen/include/BlobShape.h with 100% similarity]
contrib/caffegen/include/internal/ConvolutionLayer.h [moved from contrib/caffegen/include/ConvolutionLayer.h with 100% similarity]
contrib/caffegen/include/internal/InputLayer.h [moved from contrib/caffegen/include/InputLayer.h with 100% similarity]
contrib/caffegen/include/internal/Layer.h [moved from contrib/caffegen/include/Layer.h with 100% similarity]
contrib/caffegen/include/internal/LayerAnalysisPass.h [moved from contrib/caffegen/include/LayerAnalysisPass.h with 100% similarity]
contrib/caffegen/include/internal/LayerContext.h [moved from contrib/caffegen/include/LayerContext.h with 100% similarity]
contrib/caffegen/include/internal/LayerFactory.h [moved from contrib/caffegen/include/LayerFactory.h with 100% similarity]
contrib/caffegen/include/internal/LayerResolver.h [moved from contrib/caffegen/include/LayerResolver.h with 100% similarity]
contrib/caffegen/include/internal/LayerTransformPass.h [moved from contrib/caffegen/include/LayerTransformPass.h with 100% similarity]
contrib/caffegen/include/internal/Network.h [moved from contrib/caffegen/include/Network.h with 100% similarity]
contrib/caffegen/include/internal/NetworkBuilder.h [moved from contrib/caffegen/include/NetworkBuilder.h with 100% similarity]
contrib/caffegen/src/FillCommand.cpp
contrib/caffegen/src/internal/BlobContext.cpp [moved from contrib/caffegen/src/BlobContext.cpp with 86% similarity]
contrib/caffegen/src/internal/ConvolutionLayer.cpp [moved from contrib/caffegen/src/ConvolutionLayer.cpp with 97% similarity]
contrib/caffegen/src/internal/InputLayer.cpp [moved from contrib/caffegen/src/InputLayer.cpp with 91% similarity]
contrib/caffegen/src/internal/LayerAnalysisPass.cpp [moved from contrib/caffegen/src/LayerAnalysisPass.cpp with 68% similarity]
contrib/caffegen/src/internal/LayerContext.cpp [moved from contrib/caffegen/src/LayerContext.cpp with 90% similarity]
contrib/caffegen/src/internal/LayerResolver.cpp [moved from contrib/caffegen/src/LayerResolver.cpp with 85% similarity]
contrib/caffegen/src/internal/NetworkBuilder.cpp [moved from contrib/caffegen/src/NetworkBuilder.cpp with 95% similarity]
contrib/caffegen/src/internal/ParameterRandomizePass.cpp [moved from contrib/caffegen/src/ParameterRandomizePass.cpp with 100% similarity]
contrib/caffegen/src/internal/ParameterRandomizePass.h [moved from contrib/caffegen/src/ParameterRandomizePass.h with 91% similarity]

index cc05f85..0c366f7 100644 (file)
@@ -1,7 +1,7 @@
 #include "FillCommand.h"
-#include "LayerResolver.h"
-#include "NetworkBuilder.h"
-#include "ParameterRandomizePass.h"
+#include "internal/LayerResolver.h"
+#include "internal/NetworkBuilder.h"
+#include "internal/ParameterRandomizePass.h"
 
 #include <caffe.pb.h>
 
similarity index 86%
rename from contrib/caffegen/src/BlobContext.cpp
rename to contrib/caffegen/src/internal/BlobContext.cpp
index e53eee2..a4b4a20 100644 (file)
@@ -1,4 +1,4 @@
-#include "BlobContext.h"
+#include "internal/BlobContext.h"
 
 const BlobShape &BlobContext::at(const std::string &name) const
 {
@@ -1,6 +1,6 @@
-#include "ConvolutionLayer.h"
-#include "LayerAnalysisPass.h"
-#include "LayerTransformPass.h"
+#include "internal/ConvolutionLayer.h"
+#include "internal/LayerAnalysisPass.h"
+#include "internal/LayerTransformPass.h"
 
 #include <cassert>
 
similarity index 91%
rename from contrib/caffegen/src/InputLayer.cpp
rename to contrib/caffegen/src/internal/InputLayer.cpp
index 1247651..b7eb930 100644 (file)
@@ -1,6 +1,6 @@
-#include "InputLayer.h"
-#include "LayerAnalysisPass.h"
-#include "LayerTransformPass.h"
+#include "internal/InputLayer.h"
+#include "internal/LayerAnalysisPass.h"
+#include "internal/LayerTransformPass.h"
 
 #include <cassert>
 
@@ -1,3 +1,3 @@
-#include "LayerAnalysisPass.h"
+#include "internal/LayerAnalysisPass.h"
 
 // NOTE This file is introduced to ensure that 'LayerAnalyissPass.h' is self-complete.
similarity index 90%
rename from contrib/caffegen/src/LayerContext.cpp
rename to contrib/caffegen/src/internal/LayerContext.cpp
index 943e298..bc2475d 100644 (file)
@@ -1,4 +1,4 @@
-#include "LayerContext.h"
+#include "internal/LayerContext.h"
 
 uint32_t LayerContext::size(void) const { return _layers.size(); };
 
similarity index 85%
rename from contrib/caffegen/src/LayerResolver.cpp
rename to contrib/caffegen/src/internal/LayerResolver.cpp
index d0c3aa2..e3690a5 100644 (file)
@@ -1,6 +1,6 @@
-#include "LayerResolver.h"
-#include "InputLayer.h"
-#include "ConvolutionLayer.h"
+#include "internal/LayerResolver.h"
+#include "internal/InputLayer.h"
+#include "internal/ConvolutionLayer.h"
 
 #include <nncc/foundation/Memory.h>
 
similarity index 95%
rename from contrib/caffegen/src/NetworkBuilder.cpp
rename to contrib/caffegen/src/internal/NetworkBuilder.cpp
index ac1841d..6d45ace 100644 (file)
@@ -1,4 +1,4 @@
-#include "NetworkBuilder.h"
+#include "internal/NetworkBuilder.h"
 
 #include <nncc/foundation/Memory.h>
 
@@ -1,7 +1,7 @@
 #ifndef __PARAMETER_RANDOMIZE_PASS_H__
 #define __PARAMETER_RANDOMIZE_PASS_H__
 
-#include "LayerTransformPass.h"
+#include "internal/LayerTransformPass.h"
 
 #include <random>