doc for loss layers.