all right,i understand it now and fix it,but i got a error like this post, RuntimeError: OrderedDict mutated during iteration (while using hook),

image.png1451×165 18 KB
 and no answer under this post, i find this line code in pytorch ‘nn/module.py’ like this

image.png875×137 18.3 KB
 ,so is there a bug or my way using hook are not right?