Skip to content

Commit 7f936ab

Browse files
committed
[Notebook] Fix import
1 parent 7fd3a77 commit 7f936ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

notebooks/Simulation_and_training_in_VMAS_and_BenchMARL.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,10 @@
16291629
"TORCH = format_pytorch_version(TORCH_version)\n",
16301630
"\n",
16311631
"def format_cuda_version(version):\n",
1632-
" return 'cu' + version.replace('.', '')\n",
1632+
" if version is not None:\n",
1633+
" return 'cu' + version.replace('.', '')\n",
1634+
" else:\n",
1635+
" return \"cpu\"\n",
16331636
"\n",
16341637
"CUDA_version = torch.version.cuda\n",
16351638
"CUDA = format_cuda_version(CUDA_version)\n",

0 commit comments

Comments
 (0)