mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-11 14:56:55 +08:00
Fix bugs in use_gpu
This commit is contained in:
@@ -118,7 +118,7 @@ class TabnetModel(Model):
|
||||
|
||||
@property
|
||||
def use_gpu(self):
|
||||
self.device == torch.device("cpu")
|
||||
self.device != torch.device("cpu")
|
||||
|
||||
def pretrain_fn(self, dataset=DatasetH, pretrain_file="./pretrain/best.model"):
|
||||
get_or_create_path(pretrain_file)
|
||||
|
||||
Reference in New Issue
Block a user