Spaces:
Sleeping
Sleeping
Commit
·
1a31d5d
1
Parent(s):
2466008
Update r_shiny_app/global.R
Browse files- r_shiny_app/global.R +1 -1
r_shiny_app/global.R
CHANGED
@@ -32,7 +32,7 @@ torch <- reticulate::import("torch")
|
|
32 |
#options(shiny.trace = TRUE)
|
33 |
if(torch$cuda$is_available()){
|
34 |
print(paste0("CUDA AVAILABLE. Num devices: ", torch$cuda$device_count()))
|
35 |
-
print(paste0("current", torch$current_device()))
|
36 |
fflush.console()
|
37 |
device=as.integer(0)
|
38 |
print(paste0("Set up device ordinal "), device)
|
|
|
32 |
#options(shiny.trace = TRUE)
|
33 |
if(torch$cuda$is_available()){
|
34 |
print(paste0("CUDA AVAILABLE. Num devices: ", torch$cuda$device_count()))
|
35 |
+
# print(paste0("current", torch$current_device()))
|
36 |
fflush.console()
|
37 |
device=as.integer(0)
|
38 |
print(paste0("Set up device ordinal "), device)
|