Elmo 模型训练阶段貌似不能加载预训练的参数
Created by: wwjjy
Elmo模型中train文件的train_loop方法中,如果参数指定了load_pretraining_params这个参数的具体值,那么会执行init_pretraining_params方法,而这个方法貌似没有被定义,所以会报错。 Traceback (most recent call last): File "train.py", line 601, in train() File "train.py", line 327, in train train_loop(args, logger, vocab, train_progs, infer_progs, optimizer) File "train.py", line 443, in train_loop init_pretraining_params( NameError: name 'init_pretraining_params' is not defined