Skip to content

Commit d319310

Browse files
authored
Update setThreads function vignettes
1 parent d5431a0 commit d319310

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

vignettes/Other_Function_Details.Rmd

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,23 @@ getFuncOption("SigBridgeR.seed")
5454
### Basic Usage
5555

5656
```{r,eval=FALSE}
57-
# Auto-configure all backends (default: half cores)
58-
setThreads()
59-
6057
# Set explicit thread count
61-
setThreads(8)
58+
setThreads(8L)
6259
6360
# Configure specific backends only
64-
setThreads(threads = 4, backend = "dt") # data.table only
65-
setThreads(threads = 4, backend = "openmp") # OpenMP only
61+
setThreads(threads = 4L, backend = "dt") # data.table only
62+
setThreads(threads = 4L, backend = "openmp") # OpenMP only
6663
```
6764

6865
### TensorFlow Optimization
6966
⚠️ **Must configure BEFORE importing TensorFlow**:
7067

7168
```{r,eval=FALSE}
7269
setThreads(
73-
threads = 8,
70+
threads = 8L,
7471
tf_config = list(
75-
xla = TRUE,
76-
inter_op = 2,
77-
intra_op = 8
72+
inter_op = 2L,
73+
intra_op = 8L
7874
)
7975
)
8076
tf <- reticulate::import("tensorflow") # Import AFTER configuration

0 commit comments

Comments
 (0)