Fixed the GPU implementation of EuclideanLoss to report the loss to the top layer
Merge pull request #914 from ashafaei/euclidean-loss-fix

Fixed the GPU implementation of EuclideanLoss!
use plt namespace for imshow in filter_visualization.ipynb
[example] fix plt commands in detection
[example] change notebook name metadata to avoid conflict

see https://github.com/ipython/ipython/issues/5686
Merge pull request #921 from shelhamer/notebook-update

Fix plotting and metadata in notebook examples
[docs] update docs generation for notebook metadata
Add loss_weight to proto, specifying coefficients for each top blob
in the objective function.
Add net tests for loss_weight.

Check that the loss and gradients throughout the net are appropriately scaled
for a few loss_weight values, assuming a default weight of 1 in the loss layer
only.  Also modify test_gradient_check_util to associate a loss of 2 rather
than 1 with the top blob, so that loss layer tests fail if they don't scale
their diffs.
Generalize loss by allowing any top blob to be used as a loss in which
its elements are summed with a scalar coefficient.

Forward for layers no longer returns a loss; instead all loss layers must have
top blobs.  Existing loss layers are given a top blob automatically by
Net::Init, with an associated top_loss_weight of 1 (set in
LossLayer::FurtherSetUp).  Due to the increased amount of common SetUp logic,
the SetUp interface is modified such that all subclasses should normally
override FurtherSetUp only, which is called by SetUp.
Make multiple losses work by inserting split layers and add some tests for it.
Test that we can call backward with an ACCURACY layer.  This currently fails,
but should be possible now that we explicitly associate a loss weight with
each top blob.
Net::Init can determine that layers don't need backward if they are not
used to compute the loss.
AccuracyLayer only dies when necessary.
Disallow in-place computation in SPLIT layer -- has strange effects in
backward pass when input into a loss.
Also display outputs in the train net.  (Otherwise, why have them?)
Add ACCURACY layer and softmax_error output to lenet_consolidated_solver
example.
Store loss coefficients in layer; use for prettier training output.
Merge pull request #686 from jeffdonahue/loss-generalization

Loss generalization
Merge remote-tracking branch 'bvlc/dev' into device-abstraction

Conflicts:
	include/caffe/common_layers.hpp
	include/caffe/data_layers.hpp
	include/caffe/layer.hpp
	include/caffe/loss_layers.hpp
	include/caffe/neuron_layers.hpp
	include/caffe/vision_layers.hpp
	src/caffe/layers/accuracy_layer.cpp
	src/caffe/layers/argmax_layer.cpp
	src/caffe/layers/concat_layer.cpp
	src/caffe/layers/concat_layer.cu
	src/caffe/layers/conv_layer.cpp
	src/caffe/layers/conv_layer.cu
	src/caffe/layers/data_layer.cpp
	src/caffe/layers/data_layer.cu
	src/caffe/layers/dummy_data_layer.cpp
	src/caffe/layers/eltwise_layer.cpp
	src/caffe/layers/eltwise_layer.cu
	src/caffe/layers/euclidean_loss_layer.cpp
	src/caffe/layers/euclidean_loss_layer.cu
	src/caffe/layers/flatten_layer.cpp
	src/caffe/layers/flatten_layer.cu
	src/caffe/layers/hdf5_data_layer.cpp
	src/caffe/layers/hdf5_data_layer.cu
	src/caffe/layers/hdf5_output_layer.cpp
	src/caffe/layers/hdf5_output_layer.cu
	src/caffe/layers/hinge_loss_layer.cpp
	src/caffe/layers/im2col_layer.cpp
	src/caffe/layers/im2col_layer.cu
	src/caffe/layers/image_data_layer.cpp
	src/caffe/layers/image_data_layer.cu
	src/caffe/layers/infogain_loss_layer.cpp
	src/caffe/layers/inner_product_layer.cpp
	src/caffe/layers/inner_product_layer.cu
	src/caffe/layers/lrn_layer.cpp
	src/caffe/layers/memory_data_layer.cpp
	src/caffe/layers/multinomial_logistic_loss_layer.cpp
	src/caffe/layers/mvn_layer.cpp
	src/caffe/layers/mvn_layer.cu
	src/caffe/layers/power_layer.cpp
	src/caffe/layers/power_layer.cu
	src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp
	src/caffe/layers/sigmoid_cross_entropy_loss_layer.cu
	src/caffe/layers/softmax_loss_layer.cpp
	src/caffe/layers/softmax_loss_layer.cu
	src/caffe/layers/split_layer.cpp
	src/caffe/layers/split_layer.cu
	src/caffe/layers/window_data_layer.cpp
	src/caffe/layers/window_data_layer.cu