MultiRNN and static_rnn error: Dimensions must be equal, but are 256 and 129
问题 I want to build an LSTM network with 3 Layers. Here's the code: num_layers=3 time_steps=10 num_units=128 n_input=1 learning_rate=0.001 n_classes=1 ... x=tf.placeholder("float",[None,time_steps,n_input],name="x") y=tf.placeholder("float",[None,n_classes],name="y") input=tf.unstack(x,time_steps,1) lstm_layer=rnn_cell.BasicLSTMCell(num_units,state_is_tuple=True) network=rnn_cell.MultiRNNCell([lstm_layer for _ in range(num_layers)],state_is_tuple=True) outputs,_=rnn.static_rnn(network,inputs