1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-02 02:21:18 +08:00

Fixed issue #943 about TCTS init_fore_model (#1047)

p.init_fore_model = False -> p.requires_grad = False
This commit is contained in:
Tuozhen Liu
2022-04-14 11:23:08 +08:00
committed by GitHub
parent 87926513cb
commit 30b531086c

View File

@@ -145,7 +145,7 @@ class TCTS(Model):
init_fore_model = copy.deepcopy(self.fore_model)
for p in init_fore_model.parameters():
p.init_fore_model = False
p.requires_grad = False
self.fore_model.train()
self.weight_model.train()