mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-10-30 12:50:18 +08:00
15 lines
213 B
Python
15 lines
213 B
Python
import numpy as np
|
|
import tensorflow as tf
|
|
|
|
|
|
|
|
seed=None
|
|
|
|
print(np.random.seed(seed))
|
|
#
|
|
|
|
tf.set_random_seed(seed)
|
|
generate = tf.random_uniform(())
|
|
with tf.Session() as sess:
|
|
print(generate.eval())
|
|
# 0.96046877 |