Traceback (most recent call last):


 "train.py", line 502, in <module>

main()


 "train.py", line 486, in main

model = build_model(model_opt, opt, fields, checkpoint)


 "train.py", line 369, in build_model

use_gpu(opt), checkpoint)


 "/opt/DL/OpenNMT-py/onmt/ModelConstructor.py", line 184, in make_base_model

decoder = make_decoder(model_opt, tgt_embeddings)


 "/opt/DL/OpenNMT-py/onmt/ModelConstructor.py", line 104, in make_decoder

opt.reuse_copy_attn)


 "/opt/DL/OpenNMT-py/onmt/Models.py", line 272, in __init__

attn_type=attn_type


 "/opt/DL/OpenNMT-py/onmt/modules/GlobalAttention.py", line 79, in __init__

self.sm = nn.Softmax(dim=-1)
TypeError: __init__() got an unexpected keyword argument 'dim'
Traceback (most recent call last):

 "/Users/toxasma/opt/miniconda3/lib/python3.8/site-packages/spyder/plugins/editor/panels/scrollflag.py", line 164, in paintEvent
scale_factor = groove_rect.height() / self.get_scrollbar_value_height()ZeroDivisionError: division by zero