将tf.nn.rnn_cell.BasicLSTMCell里面的激活函数改为其他函数,比如relu函数

转自:https://www.zhihu.com/question/271746723
 

lstm = tf.nn.rnn_cell.basicLSTMCell(num_hidden,forget_bias=0.5,state_is_tuple=True,activation=tf.nn.relu)

你可能感兴趣的:(将tf.nn.rnn_cell.BasicLSTMCell里面的激活函数改为其他函数,比如relu函数)