Changes

Jump to navigation Jump to search
279 bytes added ,  10:37, 30 May 2019
no edit summary
prediction = tf.add(tf.matmul(states.h, W), b,name='prediction')
return prediction
 
If we want to stack multiple LSTM layers together, we can replace '''lstm=lstm_cell(keep_prob)''' with '''lstm= tf.contrib.rnn.MultiRNNCell([lstm_cell(keep_prob) for _ in range(num_layers)])''' where '''num_layers''' is an integer representing the number of LSTM layers we want
A sample training code lives in
E:\projects\embedding\Web_extractor_model\train_sample.py
82

edits

Navigation menu