Non-deterministic behavior of TensorFlow while_loop()

Most likely, your problem is stemming from seeding issues, make sure that you set a seed for both random.seed(), and for numpy.random.seed(). You’ll need to seed both, as numpy’s random seed is independent from the random random state.

Leave a Comment