mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
Add head regularization costs to tf.losses (#292)
This commit is contained in:
committed by
shadiendrawis
parent
3b6e413532
commit
2b7d536da4
@@ -158,6 +158,7 @@ class Head(object):
|
||||
# add regularizations
|
||||
for regularization in self.regularizations:
|
||||
self.loss.append(regularization)
|
||||
tf.losses.add_loss(regularization)
|
||||
|
||||
@classmethod
|
||||
def path(cls):
|
||||
|
||||
Reference in New Issue
Block a user