Skip to content

Updated Function _create_seed() in keras.backend#17150

Merged
copybara-service[bot] merged 1 commit intokeras-team:masterfrom
sushreebarsa:patch-3
Oct 14, 2022
Merged

Updated Function _create_seed() in keras.backend#17150
copybara-service[bot] merged 1 commit intokeras-team:masterfrom
sushreebarsa:patch-3

Conversation

@sushreebarsa
Copy link
Copy Markdown
Contributor

random.randint(1, 1e9) is replaced with random.randint(1, int(1e9)) in Function _create_seed() which was causing deprecation warning.
Fixes keras-team/tf-keras#396

random.randint(1, 1e9) is replaced with random.randint(1, int(1e9)) in Function _create_seed() which was causing deprecation warning.
Fixes #17149
@gbaned gbaned added the type:docs Need to modify the documentation label Oct 13, 2022
@gbaned gbaned requested a review from qlzh727 October 13, 2022 16:40
@google-ml-butler google-ml-butler bot added the keras-team-review-pending Pending review by a Keras team member. label Oct 13, 2022
Copy link
Copy Markdown
Collaborator

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Oct 14, 2022
@fchollet fchollet removed ready to pull Ready to be merged into the codebase keras-team-review-pending Pending review by a Keras team member. labels Oct 14, 2022
@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Oct 14, 2022
@fchollet fchollet removed the type:docs Need to modify the documentation label Oct 14, 2022
@copybara-service copybara-service bot merged commit 181d73a into keras-team:master Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to pull Ready to be merged into the codebase size:XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Function _create_seed() in keras.backend causes DeprecationWarning in Python 3.10

4 participants