Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a model for assign tff.learning.Model weights back to a tf.keras.…
…Model. This is a workaround for issue #258, which uncovered that tf.keras.Model.weights and tf.keras.Model.get_weights() are not ordered the same. - Add a toy example model that uses batch norm (includes non-trainable variables), which will fail without this change. - Move client optimizer variables to local_variables, this includes variables such as iteration number. PiperOrigin-RevId: 241075678
- Loading branch information
1 parent
6824f2f
commit 46f9c69
Showing
4 changed files
with
130 additions
and
5 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