Torben. Torben. - 9 months ago 68
Python Question

How do I finde the Code of "tf.nn.dynamic_rnn" in the tensorflow repository?

I'm trying to understand the structure and the coding of tensorflow. While going through this tutorial "" I have searched for the code that is used in the functions.
For example the line

cell = GRUCell(num_neurons) # Or LSTMCell(num_neurons)

uses the function GRUCell, which I can find in the file "" in the tensorflow repository. Furthermore the GRUCell is wrapped by a function called "tf.nn.dynamic_rnn" as follows:

output, state = tf.nn.dynamic_rnn(cell, data, dtype=tf.float32)

Unfortunately I am not able to find the code for this function. Where do I find it? Everything I find is this documentation:

Thanks for helping!

Answer Source