Function tch::set_num_threads
source · [−]pub fn set_num_threads(n_threads: i32)
Expand description
Set the number of threads used by torch in parallel regions.
pub fn set_num_threads(n_threads: i32)
Set the number of threads used by torch in parallel regions.