mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 11:40:18 +01:00
summing head losses instead of taking the mean (#98)
This commit is contained in:
@@ -280,7 +280,7 @@ class GeneralTensorFlowNetwork(TensorFlowArchitecture):
|
||||
# Losses
|
||||
self.losses = tf.losses.get_losses(self.full_name)
|
||||
self.losses += tf.losses.get_regularization_losses(self.full_name)
|
||||
self.total_loss = tf.losses.compute_weighted_loss(self.losses, scope=self.full_name)
|
||||
self.total_loss = tf.reduce_sum(self.losses)
|
||||
# tf.summary.scalar('total_loss', self.total_loss)
|
||||
|
||||
# Learning rate
|
||||
|
||||
Reference in New Issue
Block a user