我正在尝试将LSTMCell
替换为LSTMBlockFusedCell
,以获得更好的性能,但是我发现LSTMBlockFusedCell
没有输出的项目操作,因此我添加了{从
outputprojectionwrapper
的{1}}
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.
中添加投影?