This repo contains the source code in my personal column (https://zhuanlan.zhihu.com/zhaoyeyu), implemented using Python 3.6. Including Natural Language Processing and Computer Vision projects, such as text generation, machine translation, deep convolution GAN and other actual combat code.
def build_lstm(lstm_size, num_layers, batch_size, keep_prob): ''' 构建lstm层
改为:
def build_lstm(lstm_size, num_layers, batch_size, keep_prob): ''' 构建lstm层
否则 /tensorflow/python/ops/rnn_cell_impl.py 中BasicLSTMCell.call内 self._linear._weights 的shape只满足第一个cell, 无满足第二个cell.