我是Tensorflow和Theano的新手。
Tensorflow中的等价物Theano.tensor.ivector是什么?
例如,
x = Theano.tensor.ivector('x')
y = Theano.tensor.ivector('y')发布于 2017-05-06 22:13:17
据我所知,像这样的东西应该是等效的:
import tensorflow as tf
x = tf.Variable([1, -2, 3], tf.int32, name='x')您可以在以下链接中找到有关theano和tensorflow变量的其他信息(感谢bouteillebleu):
http://deeplearning.net/software/theano/library/tensor/basic.html https://www.tensorflow.org/programmers_guide/dims_types
如果您使用这些作为输入,并且您不知道初始内容,则必须使用占位符:
import tensorflow as tf
x = tf.placeholder(tf.int32, name='x')https://stackoverflow.com/questions/43821436
复制相似问题