mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 11:08:52 +00:00
PyTorch like display implementation.
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user