January 2019
Intermediate to advanced
386 pages
11h 13m
English
Now, we'll train a two-layer LSTM network with 512 cells in each layer. The full code is available at https://github.com/ivan-vasilev/Python-Deep-Learning-SE/blob/master/ch07/language%20model/model.py. Since we'll use truncated BPTT, we need to store the state between batches:
self.inputs = tf.placeholder(tf.int32 ...