bnlstm
bnlstm copied to clipboard
Update for tensorflow 1.12.0
Just some version problems, and I believe you can also find solutions easily by yourself :D
changes:
scalar_summary should be renamed to tf.summary.scalar
tf.histogram_summary should be renamed to tf.summary.histogram
tf.merge_summary should be renamed to tf.summary.merge
tf.train.SummaryWriter should be renamed to tf.summary.FileWriter
Thank you for your implementation!
By the way, to use the vanilla LSTM here on tensorflow 1.12.0, change:
concat = tf.concat(1, [x, h]) W_both = tf.concat(0, [W_xh, W_hh])
to
concat = tf.concat([x, h], 1) W_both = tf.concat([W_xh, W_hh], 0)