Python LSTMBlockFusedCell不支持使用outputprojectionwrapper

Python LSTMBlockFusedCell不支持使用outputprojectionwrapper,python,performance,tensorflow,tensorflow-serving,Python,Performance,Tensorflow,Tensorflow Serving,我试图将LSTMCell替换为LSTMBlockFusedCell以获得更好的性能,但我发现LSTMBlockFusedCell没有输出的项目操作,因此我通过以下方式将outputprojectionwrapper添加到LSTMBlockFusedCell cell=tf.contrib.rnn.OutputProjectionWrapper( tf.contrib.rnn.LSTMBlockFusedCell(config.hidden_size, 忘记_bias=0.0, cell\u cl

我试图将
LSTMCell
替换为
LSTMBlockFusedCell
以获得更好的性能,但我发现
LSTMBlockFusedCell
没有输出的项目操作,因此我通过以下方式将
outputprojectionwrapper
添加到
LSTMBlockFusedCell

cell=tf.contrib.rnn.OutputProjectionWrapper(
tf.contrib.rnn.LSTMBlockFusedCell(config.hidden_size,
忘记_bias=0.0,
cell\u clip=config.cell\u clip,
使用窥视孔=配置。使用窥视孔),
输出大小=n个输出)
但我犯了个错误

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.
TypeError:参数“cell”(单元格)不是RNNCell:“output\u size”属性丢失,
缺少“state\u size”属性,缺少“zero\u state”方法。
如何在
LSTMBlockFusedCell
中添加投影