helpers.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:tacotron 作者: keithito 项目源码 文件源码
def next_inputs(self, time, outputs, state, sample_ids, name=None):
    '''Stop on EOS. Otherwise, pass the last output as the next input and pass through state.'''
    with tf.name_scope('TacoTestHelper'):
      finished = tf.reduce_all(tf.equal(outputs, self._end_token), axis=1)
      # Feed last output frame as next input. outputs is [N, output_dim * r]
      next_inputs = outputs[:, -self._output_dim:]
      return (finished, next_inputs, state)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号