mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-12 23:36:54 +08:00
update US config to us
This commit is contained in:
@@ -60,7 +60,7 @@ class Config:
|
|||||||
|
|
||||||
# REGION CONST
|
# REGION CONST
|
||||||
REG_CN = "cn"
|
REG_CN = "cn"
|
||||||
REG_US = "US"
|
REG_US = "us"
|
||||||
|
|
||||||
_default_config = {
|
_default_config = {
|
||||||
# data provider config
|
# data provider config
|
||||||
|
|||||||
@@ -136,11 +136,8 @@ class DNNModelPytorch(Model):
|
|||||||
)
|
)
|
||||||
|
|
||||||
self._fitted = False
|
self._fitted = False
|
||||||
|
|
||||||
|
|
||||||
if self.use_gpu:
|
if self.use_gpu:
|
||||||
self.dnn_model.cuda()
|
self.dnn_model.cuda()
|
||||||
|
|
||||||
# set the visible GPU
|
# set the visible GPU
|
||||||
if self.visible_GPU:
|
if self.visible_GPU:
|
||||||
os.environ["CUDA_VISIBLE_DEVICES"] = self.visible_GPU
|
os.environ["CUDA_VISIBLE_DEVICES"] = self.visible_GPU
|
||||||
|
|||||||
Reference in New Issue
Block a user