【发布时间】:2018-12-24 07:03:15
【问题描述】:
我是 Tensorflow 和 Theano 的新手。
Tensorflow 中的等价的 Theano.tensor.ivector 是什么?
例如,
x = Theano.tensor.ivector('x')
y = Theano.tensor.ivector('y')
【问题讨论】:
标签: python tensorflow machine-learning theano
我是 Tensorflow 和 Theano 的新手。
Tensorflow 中的等价的 Theano.tensor.ivector 是什么?
例如,
x = Theano.tensor.ivector('x')
y = Theano.tensor.ivector('y')
【问题讨论】:
标签: python tensorflow machine-learning theano
据我了解,类似这样的东西是等价的:
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')
【讨论】: