Closed iDestro closed 1 year ago
Hi @iDestro, Darts TorchForecastingModels are built on top of pytorch-lightning which handles setting the devices for you behind the hood.
This user guide shows how to use GPU with Darts.
Hi @iDestro, Darts TorchForecastingModels are built on top of pytorch-lightning which handles setting the devices for you behind the hood.
This user guide shows how to use GPU with Darts.
I have resolved this problem by adding os.environ['CUDA_VISIBLE_DEVICES']='0'
in the begin of my code.
Describe the bug I encounter a problem that says
RuntimeError: Lightning can't create new processes if CUDA is already initialized.
To Reproduce
Expected behavior I want it works properly.
System (please complete the following information):
Additional context Detail error: