Seed for neural nets

Hi, Im trying to make some tensorflow model learning reproducible but I got the following error when trying :

from tensorflow import set_random_seed

ImportError: cannot import name ‘set_random_seed’

Maybe this is not the right way to seed the model.
Any help appreciated :slight_smile: thanks

Hi narcejac,

Could you please try:

from tensorflow.random import set_seed

Please refer to this stack overflow for more information.