Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Tathagatd96/3833b4e5a7fef1b6d0771ba78c0a45ba to your computer and use it in GitHub Desktop.
Save Tathagatd96/3833b4e5a7fef1b6d0771ba78c0a45ba to your computer and use it in GitHub Desktop.
#ANY RNN CELL TYPE
cell=tf.contrib.rnn.OutputProjectionWrapper(tf.contrib.rnn.GRUCell(num_units=num_neurons,activation=tf.nn.relu),output_size=num_outputs)
outputs,states=tf.nn.dynamic_rnn(cell,x,dtype=tf.float32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment