PyTorch like display implementation.

This commit is contained in:
laurent
2023-06-27 21:16:35 +01:00
parent 934655a60d
commit 8c81a70170
3 changed files with 265 additions and 258 deletions

View File

@ -1,6 +1,6 @@
use std::str::FromStr;
pub(crate) fn get_num_threads() -> usize {
pub fn get_num_threads() -> usize {
// Respond to the same environment variable as rayon.
match std::env::var("RAYON_NUM_THREADS")
.ok()