rnnsearch.py 文件源码

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

项目:XMUNMT 作者: XMUNLP 项目源码 文件源码
def get_parameters():
        params = tf.contrib.training.HParams(
            # vocabulary
            pad="</s>",
            unk="UNK",
            eos="</s>",
            bos="</s>",
            append_eos=False,
            # model
            rnn_cell="LegacyGRUCell",
            embedding_size=620,
            hidden_size=1000,
            maxnum=2,
            # regularization
            dropout=0.2,
            use_variational_dropout=False,
            label_smoothing=0.1,
            constant_batch_size=True,
            batch_size=128,
            max_length=60,
            clip_grad_norm=5.0
        )

        return params
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号