-
基本固定方法见:https://blog.csdn.net/guotong1988/article/details/79739775
-
今天想固定embedding,加了一句,搞了半天
self.emb.requires_grad=False
- 应该是
self.emb.weight.requires_grad=False
- 谨记谨记
2024-02-26 19:07:34
基本固定方法见:https://blog.csdn.net/guotong1988/article/details/79739775
今天想固定embedding,加了一句,搞了半天
self.emb.requires_grad=False
self.emb.weight.requires_grad=False