Skip to content

Commit

Permalink
LICENSE governs the whole project so strip file headers
Browse files Browse the repository at this point in the history
  • Loading branch information
shelhamer committed Aug 7, 2014
1 parent 9410e93 commit b97b88f
Show file tree
Hide file tree
Showing 165 changed files with 3 additions and 318 deletions.
1 change: 0 additions & 1 deletion examples/cifar10/convert_cifar_data.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Copyright 2014 BVLC and contributors.
//
// This script converts the CIFAR dataset to the leveldb format used
// by caffe to perform classification.
Expand Down
1 change: 0 additions & 1 deletion examples/mnist/convert_mnist_data.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Copyright 2014 BVLC and contributors.
//
// This script converts the MNIST dataset to the leveldb format used
// by caffe to perform classification.
Expand Down
2 changes: 0 additions & 2 deletions include/caffe/blob.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_BLOB_HPP_
#define CAFFE_BLOB_HPP_

Expand Down
1 change: 0 additions & 1 deletion include/caffe/caffe.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Copyright 2014 BVLC and contributors.
// caffe.hpp is the header file that you need to include in your code. It wraps
// all the internal caffe header files into one for simpler inclusion.

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/common.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_COMMON_HPP_
#define CAFFE_COMMON_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/common_layers.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_COMMON_LAYERS_HPP_
#define CAFFE_COMMON_LAYERS_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/data_layers.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_DATA_LAYERS_HPP_
#define CAFFE_DATA_LAYERS_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/filler.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

// Fillers are random number generators that fills a blob using the specified
// algorithm. The expectation is that they are only going to be used during
// initialization time and will not involve any GPUs.
Expand Down
4 changes: 1 addition & 3 deletions include/caffe/internal_thread.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_INTERNAL_THREAD_HPP_
#define CAFFE_INTERNAL_THREAD_HPP_

Expand Down Expand Up @@ -28,7 +26,7 @@ class InternalThread {
}

protected:
/* Implement this method in your subclass
/* Implement this method in your subclass
with the code you want your thread to run. */
virtual void InternalThreadEntry() = 0;

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/layer.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_LAYER_H_
#define CAFFE_LAYER_H_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/loss_layers.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_LOSS_LAYERS_HPP_
#define CAFFE_LOSS_LAYERS_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/net.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_NET_HPP_
#define CAFFE_NET_HPP_

Expand Down
6 changes: 2 additions & 4 deletions include/caffe/neuron_layers.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_NEURON_LAYERS_HPP_
#define CAFFE_NEURON_LAYERS_HPP_

Expand Down Expand Up @@ -233,12 +231,12 @@ class TanHLayer : public NeuronLayer<Dtype> {

/* ThresholdLayer
Outputs 1 if value in input is above threshold, 0 otherwise.
The defult threshold = 0, which means positive values would become 1 and
The defult threshold = 0, which means positive values would become 1 and
negative or 0, would become 0
y = 1 if x > threshold
y = 0 if x <= threshold
y' = don't differenciable
*/
template <typename Dtype>
Expand Down
2 changes: 0 additions & 2 deletions include/caffe/solver.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_OPTIMIZATION_SOLVER_HPP_
#define CAFFE_OPTIMIZATION_SOLVER_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/syncedmem.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_SYNCEDMEM_HPP_
#define CAFFE_SYNCEDMEM_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/test/test_caffe_main.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

// The main caffe test code. Your test cpp code should include this hpp
// to allow a main function to be compiled into the binary.
#ifndef CAFFE_TEST_TEST_CAFFE_MAIN_HPP_
Expand Down
2 changes: 0 additions & 2 deletions include/caffe/test/test_gradient_check_util.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_TEST_GRADIENT_CHECK_UTIL_H_
#define CAFFE_TEST_GRADIENT_CHECK_UTIL_H_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/util/benchmark.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_UTIL_BENCHMARK_H_
#define CAFFE_UTIL_BENCHMARK_H_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/util/device_alternate.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_UTIL_DEVICE_ALTERNATE_H_
#define CAFFE_UTIL_DEVICE_ALTERNATE_H_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/util/im2col.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef _CAFFE_UTIL_IM2COL_HPP_
#define _CAFFE_UTIL_IM2COL_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/util/insert_splits.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef _CAFFE_UTIL_INSERT_SPLITS_HPP_
#define _CAFFE_UTIL_INSERT_SPLITS_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/util/io.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_UTIL_IO_H_
#define CAFFE_UTIL_IO_H_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/util/math_functions.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_UTIL_MATH_FUNCTIONS_H_
#define CAFFE_UTIL_MATH_FUNCTIONS_H_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/util/mkl_alternate.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_UTIL_MKL_ALTERNATE_H_
#define CAFFE_UTIL_MKL_ALTERNATE_H_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/util/rng.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_RNG_CPP_HPP_
#define CAFFE_RNG_CPP_HPP_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/util/upgrade_proto.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_UTIL_UPGRADE_PROTO_H_
#define CAFFE_UTIL_UPGRADE_PROTO_H_

Expand Down
2 changes: 0 additions & 2 deletions include/caffe/vision_layers.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_VISION_LAYERS_HPP_
#define CAFFE_VISION_LAYERS_HPP_

Expand Down
1 change: 0 additions & 1 deletion matlab/caffe/matcaffe.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Copyright 2014 BVLC and contributors.
//
// matcaffe.cpp provides a wrapper of the caffe::Net class as well as some
// caffe::Caffe functions so that one could easily call it from matlab.
Expand Down
1 change: 0 additions & 1 deletion python/caffe/_caffe.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Copyright 2014 BVLC and contributors.
// pycaffe provides a wrapper of the caffe::Net class as well as some
// caffe::Caffe functions so that one could easily call it from Python.
// Note that for Python, we will simply use float as the data type.
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/blob.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/syncedmem.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/common.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <gflags/gflags.h>
#include <glog/logging.h>
#include <cstdio>
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layer_factory.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#ifndef CAFFE_LAYER_FACTORY_HPP_
#define CAFFE_LAYER_FACTORY_HPP_

Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/accuracy_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <algorithm>
#include <functional>
#include <utility>
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/argmax_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <algorithm>
#include <functional>
#include <utility>
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/bnll_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <algorithm>
#include <vector>

Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/bnll_layer.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <algorithm>
#include <vector>

Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/concat_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/layer.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/concat_layer.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/layer.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/conv_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/filler.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/conv_layer.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/filler.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/data_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <leveldb/db.h>
#include <stdint.h>

Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/data_layer.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <string>
#include <vector>

Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/dropout_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

// TODO (sergeyk): effect should not be dependent on phase. wasted memcpy.

#include <vector>
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/dropout_layer.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <algorithm>
#include <limits>
#include <vector>
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/dummy_data_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/filler.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/eltwise_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/layer.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/eltwise_layer.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/layer.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/euclidean_loss_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/layer.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/euclidean_loss_layer.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/layer.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/flatten_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/layer.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/flatten_layer.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/layer.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/caffe/layers/hdf5_data_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Copyright 2014 BVLC and contributors.
/*
TODO:
- load file in a separate thread ("prefetch")
Expand Down
1 change: 0 additions & 1 deletion src/caffe/layers/hdf5_data_layer.cu
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Copyright 2014 BVLC and contributors.
/*
TODO:
- only load parts of the file, in accordance with a prototxt param "max_mem"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/hdf5_output_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "hdf5.h"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/hdf5_output_layer.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "hdf5.h"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/hinge_loss_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <algorithm>
#include <cfloat>
#include <cmath>
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/im2col_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/common.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/im2col_layer.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/common.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/image_data_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <fstream> // NOLINT(readability/streams)
#include <iostream> // NOLINT(readability/streams)
#include <string>
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/image_data_layer.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/blob.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/infogain_loss_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <algorithm>
#include <cfloat>
#include <cmath>
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/inner_product_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/blob.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/caffe/layers/inner_product_layer.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright 2014 BVLC and contributors.

#include <vector>

#include "caffe/blob.hpp"
Expand Down
Loading

0 comments on commit b97b88f

Please sign in to comment.