output loss for caffenet and alexnet train/val models