Modified euclidean loss layer to be able to output loss to top.
This feature is required for the test phase to estimate an accuracy.