mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 11:10:20 +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
|
# add regularizations
|
||||||
for regularization in self.regularizations:
|
for regularization in self.regularizations:
|
||||||
self.loss.append(regularization)
|
self.loss.append(regularization)
|
||||||
|
tf.losses.add_loss(regularization)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def path(cls):
|
def path(cls):
|
||||||
|
|||||||
Reference in New Issue
Block a user