def output_size(self):
# Return the cell output and the id
return BeamSearchOptimizationDecoderOutput(
scores=tf.TensorShape([self._beam_width]),
predicted_ids=tf.TensorShape([self._beam_width]),
parent_ids=tf.TensorShape([self._beam_width]),
gold_score=tf.TensorShape(()),
loss=tf.TensorShape(()))
beam_aligner.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录