我正在使用 Mac OS el capitán,我正在尝试遵循OpenNMT pytorch版本的快速入门教程。在训练步骤中,我收到以下警告消息:
OpenNMT-py/onmt/modules/GlobalAttention.py:177: UserWarning: Implicit dimension choice for softmax has been deprecated. Change the call to include dim=X as an argument.
align_vectors = self.sm(align.view(batch*targetL, sourceL))
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/nn/modules/container.py:67: UserWarning: Implicit dimension choice for log_softmax has been deprecated. Change the call to include dim=X as an argument.
input = module(input)
第 1 步:预处理数据(按预期工作)
python preprocess.py -train_src data/src-train.txt -train_tgt data/tgt-train.txt -valid_src data/src-val.txt -valid_tgt data/tgt-val.txt -save_data data/demo
第 2 步:训练模型(产生警告消息)
python train.py -data data/demo -save_model demo-model
有没有人遇到过这个警告或有任何解决方法的指示?