-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tfjs-layers] Fix a silent error in L1/L2/L1L2 regularizer constructor (
#1861) Re. #1773 BUG Previosly, if you pass a number argument to `tf.regularizers.l2()`, for example, no error will be thrown, even though the specified number will not take effect as the regularization coefficient. This PR fixes that by explicitly checking the type of the arg.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 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