summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJeff Donahue <jeff.donahue@gmail.com>2014-02-15 14:39:44 -0800
committerJeff Donahue <jeff.donahue@gmail.com>2014-02-15 15:05:23 -0800
commit5e89b52bab682340322f707241cd53adc2256192 (patch)
tree235e185f901f65f4862c0110199187a4f80e7146 /include
parentd86f9b0ce94b45d899a077ebeb47e78e257fa7df (diff)
downloadcaffe-5e89b52bab682340322f707241cd53adc2256192.tar.gz
caffe-5e89b52bab682340322f707241cd53adc2256192.tar.bz2
caffe-5e89b52bab682340322f707241cd53adc2256192.zip
add split layer insertion tests; move split insertion code to util file
Diffstat (limited to 'include')
-rw-r--r--include/caffe/net.hpp3
-rw-r--r--include/caffe/util/insert_splits.hpp21
2 files changed, 21 insertions, 3 deletions
diff --git a/include/caffe/net.hpp b/include/caffe/net.hpp
index cee1d386..684d6c5a 100644
--- a/include/caffe/net.hpp
+++ b/include/caffe/net.hpp
@@ -28,9 +28,6 @@ class Net {
// Initialize a network with the network parameter.
void Init(const NetParameter& param);
- // Copy NetParameters with SplitLayers added to replace any shared bottom
- // blobs with unique bottom blobs provided by the SplitLayer.
- void AddSplits(const NetParameter& param, NetParameter* param_split);
// Run forward with the input blobs already fed separately. You can get the
// input blobs using input_blobs().
diff --git a/include/caffe/util/insert_splits.hpp b/include/caffe/util/insert_splits.hpp
new file mode 100644
index 00000000..f8aae288
--- /dev/null
+++ b/include/caffe/util/insert_splits.hpp
@@ -0,0 +1,21 @@
+// Copyright 2014 Jeff Donahue
+
+#ifndef _CAFFE_UTIL_INSERT_SPLITS_HPP_
+#define _CAFFE_UTIL_INSERT_SPLITS_HPP_
+
+#include "caffe/proto/caffe.pb.h"
+
+using std::string;
+
+namespace caffe {
+
+// Copy NetParameters with SplitLayers added to replace any shared bottom
+// blobs with unique bottom blobs provided by the SplitLayer.
+void insert_splits(const NetParameter& param, NetParameter* param_split);
+
+void configure_split_layer(const string& blob_name,
+ const int split_count, LayerConnection* split_layer_connection);
+
+} // namespace caffe
+
+#endif // CAFFE_UTIL_INSERT_SPLITS_HPP_