Skip to content

How to use estimator_config_dnn.yaml without GPU ? #47

@pan-cai

Description

@pan-cai

If there is not GPU,

MODEL_CONFIG = {
                "loss": "mse",
                'input_dim': 158,
                'output_dim': 1,
                'lr': 0.002,
                'lr_decay': 0.96,
                'lr_decay_steps': 100,
                'optimizer': 'adam',
                'max_steps': 8000,
                'batch_size': 4096,
                # 'GPU': '0',
                }
     73 def _check_driver():
     74     if not hasattr(torch._C, '_cuda_isDriverSufficient'):
---> 75         raise AssertionError("Torch not compiled with CUDA enabled")
     76     if not torch._C._cuda_isDriverSufficient():
     77         if torch._C._cuda_getDriverVersion() == 0:

AssertionError: Torch not compiled with CUDA enabled

MODEL_CONFIG = {
                "loss": "mse",
                'input_dim': 158,
                'output_dim': 1,
                'lr': 0.002,
                'lr_decay': 0.96,
                'lr_decay_steps': 100,
                'optimizer': 'adam',
                'max_steps': 8000,
                'batch_size': 4096,
                'GPU': '0',
                }
     73 def _check_driver():
     74     if not hasattr(torch._C, '_cuda_isDriverSufficient'):
---> 75         raise AssertionError("Torch not compiled with CUDA enabled")
     76     if not torch._C._cuda_isDriverSufficient():
     77         if torch._C._cuda_getDriverVersion() == 0:

AssertionError: Torch not compiled with CUDA enabled

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions