Rework EuclideanLossLayer to be able to do multiple inputs.