forked from keras-team/keras
-
Notifications
You must be signed in to change notification settings - Fork 0
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.check_trainable_weights_consistency (keras-team#8234)
* Add a model.check_trainable_weights_consistency This will raise a UserWarning when the user modifies model.trainable and tries to print a model summary or launch a fit without having called .compile. Calling .compile() is necessary because trainable weights are collected in compile (model._collected_trainable_weights). * Fix comments and cosmetics on count_params * Make Model.check_trainable_weights_consistency private Also fix its docstring * Fix docstring of test_trainable_weights_count_consistency
- Loading branch information
Showing
4 changed files
with
82 additions
and
3 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