thunlp / FewRel

A Large-Scale Few-Shot Relation Extraction Dataset
https://thunlp.github.io/fewrel.html
MIT License
731 stars 165 forks source link

请问framework的train()函数的parameters_to_optimize #71

Closed 9876K closed 2 years ago

9876K commented 3 years ago

parameters_to_optimize被传到优化器optimizer中,parameters_to_optimize代表模型参数,模型假如用的bert,是不是对bert的参数进行训练了?

THUCSTHanxu13 commented 2 years ago

这个要看具体怎么塞参数了,我们默认是优化所有参数的,但是写代码的时候可以具体选择塞哪些参数进优化器的