File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
7269setThreads(
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)
8076tf <- reticulate::import("tensorflow") # Import AFTER configuration
You can’t perform that action at this time.
0 commit comments