我试图用LSTMBlockFusedCell
替换LSTMCell
以获得更好的性能,但是我发现LSTMBlockFusedCell
没有输出的项目操作,所以我通过
cell = tf.contrib.rnn.OutputProjectionWrapper(
tf.contrib.rnn.LSTMBlockFusedCell(config.hidden_size,
forget_bias=0.0,
cell_clip=config.cell_clip,
use_peephole=config.use_peephole),
output_size=n_outputs)
但我错了
TypeError: The argument 'cell' (<tensorflow.contrib.rnn.python.ops.lstm_ops.LSTMBlockFusedCell
object at 0x7f2c08f1eb90>) is not an RNNCell: 'output_size' property is missing,
'state_size' property is missing, 'zero_state' method is missing.
如何在LSTMBlockFusedCell
中添加投影?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐