TWJ718925
TWJ718925
There is an error when using tx.modules.TransformerEncoder to pass hparams!How to deal with it? Traceback (most recent call last): File "/home/twjing/PycharmProjects/infilling/Text_Infilling-master/seq2seq.py", line 34, in import seq2seq_hyperparams File "/home/twjing/PycharmProjects/infilling/Text_Infilling-master/seq2seq_hyperparams.py", line 10,...
你好!我是一名初学者,对于您的这篇论文很感兴趣,想着用中文的数据集来训练模型会是什么样的效果,但是我用了一个240万的中文数据集训练模型时遇到了一个问题,可能是自己能力不足没法解决,只能求助您,这个问题就是:在训练模型时,老是报错‘’tensorflow.python.framework.errors_impl.UnknownError: IndexError: too many indices for array‘’,我只跑通pos数据集,对于neg数据集也会出现同样的错误,我用的是服务器运行程序,而对于中文数据集,只训练‘’epoch:0 test_bleu:30.07800579071045 template_bleu:79.62971329689026 test_loss:6.98167085647583 test_ppl:1187.98974609375‘’然后就出现以下报错: root@a8f8e2b9891d:/notebooks# python self_attn.py --mask_rate 0.2 --blank_num 2 --filename_prefix 'data.' --data_dir './yelp_data/data/' /usr/local/lib/python3.5/dist-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of...