rnn_cell.py 文件源码

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

项目:ROLO 作者: Guanghan 项目源码 文件源码
def __call__(self, inputs, state, scope=None):
    """Run the cell with the declared dropouts."""
    if (not isinstance(self._input_keep_prob, float) or
        self._input_keep_prob < 1):
      inputs = nn_ops.dropout(inputs, self._input_keep_prob, seed=self._seed)
    output, new_state = self._cell(inputs, state, scope)
    if (not isinstance(self._output_keep_prob, float) or
        self._output_keep_prob < 1):
      output = nn_ops.dropout(output, self._output_keep_prob, seed=self._seed)
    return output, new_state
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号