Skip to content

Commit

Permalink
bug fix for seed generator (keras-team#471)
Browse files Browse the repository at this point in the history
Co-authored-by: Haifeng Jin <[email protected]>
  • Loading branch information
2 people authored and fchollet committed Jul 13, 2023
1 parent f7ca574 commit 6830a92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keras_core/random/seed_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy as np

import keras_core.backend
from keras_core import backend
from keras_core.api_export import keras_core_export


Expand Down Expand Up @@ -33,7 +33,7 @@ def __init__(self, seed, **kwargs):
if custom_backend is not None:
self.backend = custom_backend
else:
self.backend = keras_core.backend
self.backend = backend

if seed is None:
seed = make_default_seed()
Expand Down

0 comments on commit 6830a92

Please sign in to comment.