
tensorflow
dongxq725
这个作者很懒,什么都没留下…
展开
-
TensorFlow版本问题
1. 跑tensoflow报错“AttributeError: 'module' object has no attribute 'mul' 使用multiply代替mul即可。 2. tensoflow使用placeholder报错“AttributeError: 'module' object has no attribute 'types'” 将types删掉,原创 2017-07-19 10:15:03 · 521 阅读 · 0 评论 -
ValueError: Variable rnnlm/multi_rnn_cell/cell_0/basic_lstm_cell/kernel already exists, disallowed.
在使用语言模型训练完成之后,在生成的时候,需要使用while循环多次调用生成多句。 报错:ValueError: Variable rnnlm/multi_rnn_cell/cell_0/basic_lstm_cell/kernel already exists, disallowed. 解决方法:在构建图的代码块上加上with tf.Graph().as_default(): with ...原创 2018-07-27 14:59:44 · 1638 阅读 · 0 评论