-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Rename DECheckpoint and de_save_model api to make them more loo…
…ks like TF style.
- Loading branch information
Showing
6 changed files
with
22 additions
and
19 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
5 changes: 4 additions & 1 deletion
5
tensorflow_recommenders_addons/dynamic_embedding/python/keras/__init__.py
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
from tensorflow_recommenders_addons.dynamic_embedding.python.keras import layers | ||
from tensorflow_recommenders_addons.dynamic_embedding.python.keras import callbacks | ||
from tensorflow_recommenders_addons.dynamic_embedding.python.keras import models | ||
from tensorflow_recommenders_addons.dynamic_embedding.python.keras import models | ||
|
||
setattr(models, 'save_model', models.de_save_model) | ||
setattr(callbacks, 'ModelCheckpoint', callbacks.DEHvdModelCheckpoint) |
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
2 changes: 2 additions & 0 deletions
2
tensorflow_recommenders_addons/dynamic_embedding/python/train/__init__.py
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
from tensorflow_recommenders_addons.dynamic_embedding.python.train.saver import DEHvdSaver | ||
from tensorflow_recommenders_addons.dynamic_embedding.python.train.checkpoint import DECheckpoint | ||
|
||
Checkpoint = DECheckpoint |
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