dennybritz / tf-rnn

Practical Examples for RNNs in Tensorflow

Home Page:http://www.wildml.com/2016/08/rnns-in-tensorflow-a-practical-guide-and-undocumented-features/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

one-padding in dynamic_rnn.ipynb

lan2720 opened this issue · comments

Hi,
Thanks for your excelent tutorial! I learned a lot from your code and the post.

One question is

tf.reset_default_graph()

# Create input data
X = np.random.randn(2, 10, 8)

# The second example is of length 6 
X[1,6,:] = 0
X_lengths = [10, 6]

The second example is of length 6. So I think if there is X[1, 6:] = 0 rather than X[1, 6, :] = 0?

You're right, thanks for pointing it out! I fixed it in e74d438