keras.utils.set_random_seed clear the global SeedGenerator. by hertschuh · Pull Request #21874 · keras-team/keras (original) (raw)

[gemini-code-assist[bot]](/apps/gemini-code-assist)

divyashreepathihalli

@hertschuh

This is needed to get reproducible results with keras.random ops.

Also introduced a constant for "global_seed_generator".

hertschuh added a commit to hertschuh/keras that referenced this pull request

Jan 30, 2026

@hertschuh

This change keras-team#21874 causes set_random_seed to also clear the global SeedGenerator, rendering this code in initialize_rng useless.

hertschuh added a commit that referenced this pull request

Jan 30, 2026

@hertschuh

This change #21874 causes set_random_seed to also clear the global SeedGenerator, rendering this code in initialize_rng useless.

jerryxyj added a commit to jerryxyj/keras that referenced this pull request

Feb 14, 2026

@jerryxyj

This file contains hidden or 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

[ Show hidden characters]({{ revealButtonHref }})