Skip to content

Commit

Permalink
PR #17568: Fix spelling error in Initializer warning
Browse files Browse the repository at this point in the history
Imported from GitHub PR #17568

This PR fixes a minor spelling error `initializer` -> `initializer` in the warning message. Spelling errors could possibly block CI pipelines e.g., if it has a spell check set up to check even warning messages that come from notebooks. We've run into this in https://github.com/NVIDIA-Merlin/models when we ran `codespell` on our notebooks which usually include all outputs.
Copybara import of the project:

--
5688b5a by edknv <edwardk@nvidia.com>:

Fix spelling error in Initializer warning

Merging this change closes #17568

FUTURE_COPYBARA_INTEGRATE_REVIEW=#17568 from edknv:fix_spelling_initalizer 5688b5a
PiperOrigin-RevId: 509938515
  • Loading branch information
tensorflower-gardener committed Feb 15, 2023
1 parent 4bc1ead commit 2b4634e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/initializers/initializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def _warn_reuse(self):
"and being called multiple times, which will return "
"identical values each time (even if the initializer is "
"unseeded). Please update your code to provide a seed to "
"the initializer, or avoid using the same initalizer "
"the initializer, or avoid using the same initializer "
"instance more than once."
)
else:
Expand Down

0 comments on commit 2b4634e

Please sign in to comment.