-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
anna_lstm 两个版本的都出现问题 #22
Comments
我的也是,没看出是为什么: |
你好,请问问题解决了吗?我也遇到了这个问题,不知道是为什么 |
按以下代码重写build_lstm函数,TF1.11测试通过 def build_lstm(lstm_size, num_layers, batch_size, keep_prob): |
没错,因为原始代码相当于只构建了一个lstm单元 |
运行两个版本的LSTM代码的时候,都是出现这个问题,一直没找到这个bug,所以想请教一下。
问题出现的代码位置:
运行RNN
outputs, state = tf.nn.dynamic_rnn(cell, x_one_hot, initial_state=self.initial_state)
提示出现的错误信息:(貌似是Tensor的形状问题,但是检查了代码,没有发现这个问题出在哪里了)
Dimensions must be equal, but are 1024 and 595 for 'rnn/while/rnn/multi_rnn_cell/cell_0/basic_lstm_cell/MatMul_1' (op: 'MatMul') with input shapes: [1,1024], [595,2048].
The text was updated successfully, but these errors were encountered: