-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loading of
TwoTowerModel
with context query variable (#887)
* Use `add_weight` instead of `add_variable` on `ModelContext` * Remove the now unused method `add_variable` on `ModelContext` * Update two tower save test to reload model * Pad queries with zeros when batch size is different from first batch * Use tf.shape instead of .shape to get dims Co-authored-by: rnyak <ronayak@hotmail.com>
- Loading branch information
1 parent
dc69d42
commit 7a1227d
Showing
4 changed files
with
23 additions
and
14 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