Created
November 18, 2016 22:29
-
-
Save 3h4/6d41a9f1214d03fb9ba671c6331be5c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
state_per_layer_list = tf.unpack(init_state, axis=0) | |
rnn_tuple_state = tuple( | |
[tf.nn.rnn_cell.LSTMStateTuple(state_per_layer_list[idx][0], state_per_layer_list[idx][1]) | |
for idx in range(num_layers)] | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment