#include "caffe/common.hpp"
#include "caffe/proto/caffe.pb.h"
+namespace caffe {
+
using std::string;
using std::vector;
-namespace caffe {
-
template <typename Dtype>
class Layer {
public:
#include "caffe/layer.hpp"
#include "caffe/proto/caffe.pb.h"
+namespace caffe {
+
using std::map;
using std::pair;
using std::set;
using std::string;
using std::vector;
-namespace caffe {
-
-
template <typename Dtype>
class Net {
public:
#include "caffe/proto/caffe.pb.h"
+namespace caffe {
+
using std::pair;
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 InsertSplits(const NetParameter& param, NetParameter* param_split);
#include "caffe/blob.hpp"
-using std::string;
-using ::google::protobuf::Message;
-
#define HDF5_NUM_DIMS 4
namespace caffe {
+using std::string;
+using ::google::protobuf::Message;
+
bool ReadProtoFromTextFile(const char* filename, Message* proto);
inline bool ReadProtoFromTextFile(const string& filename, Message* proto) {
#include "caffe/proto/caffe.pb.h"
#include "caffe/proto/caffe_pretty_print.pb.h"
-using std::string;
-
namespace caffe {
+using std::string;
+
// Return true iff any layer contains parameters specified using
// deprecated V0LayerParameter.
bool NetNeedsUpgrade(const NetParameter& net_param);
#include "caffe/vision_layers.hpp"
#include "caffe/proto/caffe.pb.h"
-using std::string;
-
namespace caffe {
+using std::string;
// A function to get a specific layer from the specification given in
// LayerParameter. Ideally this would be replaced by a factory pattern,
#include "caffe/util/math_functions.hpp"
#include "caffe/util/io.hpp"
-using std::max;
namespace caffe {
+using std::max;
+
template <typename Dtype>
void AccuracyLayer<Dtype>::SetUp(
const vector<Blob<Dtype>*>& bottom, vector<Blob<Dtype>*>* top) {
#include "caffe/layer.hpp"
#include "caffe/vision_layers.hpp"
-using std::min;
-
namespace caffe {
+using std::min;
+
const float kBNLL_THRESHOLD = 50.;
template <typename Dtype>
#include "caffe/layer.hpp"
#include "caffe/vision_layers.hpp"
-using std::max;
-
namespace caffe {
+using std::max;
+
const float kBNLL_THRESHOLD = 50.;
template <typename Dtype>
#include "caffe/vision_layers.hpp"
#include "caffe/proto/caffe.pb.h"
-using std::string;
-
namespace caffe {
template <typename Dtype>
#include "caffe/util/io.hpp"
#include "caffe/vision_layers.hpp"
-using std::string;
-
namespace caffe {
template <typename Dtype>
#include "caffe/util/io.hpp"
#include "caffe/vision_layers.hpp"
-using std::string;
-
namespace caffe {
template <typename Dtype>
#include "caffe/util/rng.hpp"
#include "caffe/vision_layers.hpp"
+namespace caffe {
+
using std::iterator;
-using std::string;
using std::pair;
-namespace caffe {
-
template <typename Dtype>
void* ImageDataLayerPrefetch(void* layer_pointer) {
CHECK(layer_pointer);
#include "caffe/util/io.hpp"
#include "caffe/vision_layers.hpp"
-using std::string;
-using std::pair;
-
namespace caffe {
+using std::pair;
+
template <typename Dtype>
Dtype ImageDataLayer<Dtype>::Forward_gpu(const vector<Blob<Dtype>*>& bottom,
vector<Blob<Dtype>*>* top) {
#include "caffe/util/rng.hpp"
#include "caffe/vision_layers.hpp"
-using std::string;
-using std::map;
-using std::pair;
-
// caffe.proto > LayerParameter > WindowDataParameter
// 'source' field specifies the window_file
// 'crop_size' indicates the desired warped size
namespace caffe {
+using std::map;
+using std::pair;
+
template <typename Dtype>
void* WindowDataLayerPrefetch(void* layer_pointer) {
WindowDataLayer<Dtype>* layer =
#include "caffe/util/io.hpp"
#include "caffe/vision_layers.hpp"
-using std::string;
-using std::map;
-using std::pair;
-
// caffe.proto > LayerParameter > WindowDataParameter
// 'source' field specifies the window_file
// 'crop_size' indicates the desired warped size
namespace caffe {
+using std::map;
+using std::pair;
+
template <typename Dtype>
Dtype WindowDataLayer<Dtype>::Forward_gpu(const vector<Blob<Dtype>*>& bottom,
vector<Blob<Dtype>*>* top) {