mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-04 03:21:00 +08:00
update
This commit is contained in:
@@ -398,7 +398,7 @@ class SFM(Model):
|
||||
# update learning rate
|
||||
self.scheduler.step(cur_loss_val)
|
||||
|
||||
if device != 'cpu':
|
||||
if self.device != 'cpu':
|
||||
torch.cuda.empty_cache()
|
||||
|
||||
def get_loss(self, pred, target, loss_type):
|
||||
|
||||
Reference in New Issue
Block a user