tensorflow
Little-D
滴水穿石,坚持的人才能创造奇迹。。。
展开
-
tensorflow各版本间问题汇总
问题一:TypeError: Expected int32, got list containing Tensors of type ‘_Message’ instead.tensorflow 函数tf.cocat([fw,bw],2)出错:Expected int32, got list containing Tensors of type ‘_Message’ inst 查看原因是11...转载 2018-11-20 20:06:23 · 615 阅读 · 0 评论 -
'tensorflow.python.ops.nn' has no attribute 'rnn_cell
For people using the newer version of tensorflow, add this to the code:from tensorflow.contrib import rnn lstm_cell = rnn.BasicLSTMCell(rnn_size) outputs, states = rnn.static_rnn(lstm_cell, x, ...翻译 2018-11-20 20:12:09 · 3261 阅读 · 2 评论 -
tf.nn.seq2seq 函数 新版本调整
Tensorflow 函数调整:tf.nn.seq2seq.sequence_loss_by_example( [logits], # output [batch*numsteps, vocab_size] [tf.reshape(self._targets, [-1])], # target, [batch_size, num_steps...原创 2018-11-29 20:03:42 · 1181 阅读 · 1 评论