import tensorflow as tf
a = tf.Variable(tf.random_uniform(shape=[10, 10]))
with tf.Session() as sess:
#必须调用,否则a没办法初始化值
sess.run(tf.global_variables_initializer())
print sess.run(a)
tensorflow精品教程:变量
Posted 我花开后百花残
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tensorflow精品教程:变量相关的知识,希望对你有一定的参考价值。
以上是关于tensorflow精品教程:变量的主要内容,如果未能解决你的问题,请参考以下文章