Skip to content

Instantly share code, notes, and snippets.

@3h4
Created November 18, 2016 15:09
Show Gist options
  • Save 3h4/307bd343036b7fc3c98295f1476d3ad0 to your computer and use it in GitHub Desktop.
Save 3h4/307bd343036b7fc3c98295f1476d3ad0 to your computer and use it in GitHub Desktop.
# Unpack columns
inputs_series = tf.split(1, truncated_backprop_length, batchX_placeholder)
labels_series = tf.unpack(batchY_placeholder, axis=1)
# Forward passes
cell = tf.nn.rnn_cell.BasicRNNCell(state_size)
states_series, current_state = tf.nn.rnn(cell, inputs_series, init_state)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment