mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-17 09:24:34 +08:00
Fix GPU
This commit is contained in:
@@ -151,7 +151,7 @@ class DNNModelPytorch(Model):
|
||||
self.dnn_model.cuda()
|
||||
# set the visible GPU
|
||||
if self.visible_GPU:
|
||||
os.environ["CUDA_VISIBLE_DEVICES"] = self.visible_GPU
|
||||
os.environ["CUDA_VISIBLE_DEVICES"] = str(self.visible_GPU)
|
||||
|
||||
def fit(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user