-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor losses accounting within model.
* Remove use of `self.add_loss()` as it requires cumbersome keeping tracking of a parallel list of loss_names for tensorboard summaries. * Forward `__call__()` on model now has `return_losses` keyword argument that if True also returns a dictionary of all the losses on that pass, including 'total_loss'. * Needed to use the functional form (instead of a self.losses_dict property) to handle some tf.function() headaches that arose from side-effects. * Bumps version to v0.1.0. The version should have actually been bumped at v0.0.7 which made a minor revision change. PiperOrigin-RevId: 308137442
- Loading branch information
1 parent
546f9e5
commit ce3e995
Showing
4 changed files
with
51 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
pulling in all the dependencies in __init__.py. | ||
""" | ||
|
||
__version__ = '0.0.10' | ||
__version__ = '0.1.0' |