rnn_example_decoder.py 文件源码

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

项目:npfl114 作者: ufal 项目源码 文件源码
def output_fn(cell_output):
    if cell_output is None:
        return tf.zeros([LETTERS], tf.float32) # only used for shape inference
    else:
        return tf_layers.linear(cell_output, num_outputs=LETTERS, scope="rnn_output")

# Input function (makes rnn input from word id and cell state)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号