【发布时间】:2018-03-04 11:47:45
【问题描述】:
我有以下代码:
a = tf.placeholder(dtype = tf.float64, shape = (10, None))
b = tf.Variable(tf.random_normal((20, 10), dtype = tf.float64), dtype = tf.float64)
c = tf.matmul(b, a)
d = tf.shape(a)[1]
e = tf.Variable(tf.random_normal((d, d), dtype = tf.float64), dtype = tf.float64)
我想在执行过程中设置e的维度。但我得到一个错误。不可能吗?
【问题讨论】:
标签: python variables tensorflow initialization tensor