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