mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-02 02:21:18 +08:00
p.init_fore_model = False -> p.requires_grad = False
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user