擅长:python、mysql、java
<p>您刚刚创建了一个计算图,它生成一个输出随机数的操作。对于要计算的值,必须在<code>tf.Session</code>中执行图形。在</p>
<pre><code>// build the graph
a = tf.random_uniform((1000,2000))
// run the graph
with tf.Session() as sess:
t = time.time()
for i in range(400):
computed_rand_values = sess.run(a)
//print(...)
</code></pre>
<p>我没有测试,但我相信计算时间会比以前的结果长</p>