tf.compat.v1.losses.add_loss

Adds a externally defined loss to the collection of losses.

lossA loss Tensor.
loss_collectionOptional collection to add the loss to.