DEV Community

qiumingming7@gmail.com
qiumingming7@gmail.com

Posted on

Answer: How do I generate a random vector in TensorFlow and maintain it for further use?

The current version of your code will randomly generate a new value for rand_var_1 and rand_var_2 on each call to sess.run() (although since you set the seed to 0, they will have the same value within a single call to sess.run()).

If you want to retain the value of…

Top comments (0)