|
|
@ -596,7 +596,7 @@ |
|
|
|
" MAX_ADABINS_AREA = 500000\n", |
|
|
|
" MAX_ADABINS_AREA = 500000\n", |
|
|
|
"\n", |
|
|
|
"\n", |
|
|
|
"import torch\n", |
|
|
|
"import torch\n", |
|
|
|
"DEVICE = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')\n", |
|
|
|
"DEVICE = torch.device('cuda:0' if (torch.cuda.is_available() and not useCPU) else 'cpu')\n", |
|
|
|
"print('Using device:', DEVICE)\n", |
|
|
|
"print('Using device:', DEVICE)\n", |
|
|
|
"device = DEVICE # At least one of the modules expects this name..\n", |
|
|
|
"device = DEVICE # At least one of the modules expects this name..\n", |
|
|
|
"\n", |
|
|
|
"\n", |
|
|
|