run KT-NET 时候,ema.update()报 ‘dict’ object has no attribute 'has_key'
Created by: euphratica
环境:ubuntu16 cuda9.0 cudnn 7.3 python3.7 paddle是按照官网通过pip安装的 在执行 sh ./run_record_twomemory_finetune.sh 时候报如下错误 Traceback (most recent call last): File "src/run_record_twomemory.py", line 628, in train(args) File "src/run_record_twomemory.py", line 429, in train ema.update() File "/home/thj18/anaconda3/envs/paddle/lib/python3.7/site-packages/paddle/fluid/optimizer.py", line 2624, in update if self._ema_vars.has_key(param.name + '.master'): AttributeError: 'dict' object has no attribute 'has_key'