我是Tensorflow和Theano的新人。
Tensorflow中的等效性Theano.tensor.ivector是什么?
例如,
x = Theano.tensor.ivector('x')
y = Theano.tensor.ivector('y')
答案 0 :(得分:2)
据我所知,这样的事情是等价的:
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')