1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-04 03:21:00 +08:00
This commit is contained in:
Alex Wang
2020-11-25 14:23:12 +08:00
parent dad09e91cf
commit 6b90c6d066

View File

@@ -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):