tunable_gate! {
#[cfg(feature = "neural_network")]
pub(crate) CHEAP_MAP_PARALLEL_THRESHOLD
=> cheap_map_parallel_threshold / set_cheap_map_parallel_threshold = 4_000_000
}
tunable_gate! {
#[cfg(feature = "neural_network")]
pub(crate) EXP_MAP_PARALLEL_THRESHOLD
=> exp_map_parallel_threshold / set_exp_map_parallel_threshold = 131_072
}
tunable_gate! {
#[cfg(feature = "neural_network")]
pub(crate) SPATIAL_DROPOUT_SCALE_PARALLEL_MIN_ELEMS
=> spatial_dropout_scale_parallel_min_elems / set_spatial_dropout_scale_parallel_min_elems
= 4_194_304
}
tunable_gate! {
#[cfg(feature = "neural_network")]
pub(crate) FUSED_SLICE_PARALLEL_THRESHOLD
=> fused_slice_parallel_threshold / set_fused_slice_parallel_threshold = 1_000_000
}
tunable_gate! {
#[cfg(feature = "neural_network")]
pub(crate) SQ_SUM_F32_PARALLEL_MIN_ELEMS
=> sq_sum_f32_parallel_min_elems / set_sq_sum_f32_parallel_min_elems = 65_536
}
tunable_gate! {
#[cfg(feature = "neural_network")]
pub(crate) NAIVE_CONV_PARALLEL_MIN_FLOPS
=> naive_conv_parallel_min_flops / set_naive_conv_parallel_min_flops = 1_000_000
}
tunable_gate! {
#[cfg(any(feature = "machine_learning", feature = "utils"))]
pub(crate) CHEAP_MAP_F64_PARALLEL_THRESHOLD
=> cheap_map_f64_parallel_threshold / set_cheap_map_f64_parallel_threshold = 4_000_000
}
tunable_gate! {
#[cfg(any(feature = "machine_learning", feature = "utils"))]
pub(crate) EXP_MAP_F64_PARALLEL_THRESHOLD
=> exp_map_f64_parallel_threshold / set_exp_map_f64_parallel_threshold = 65_536
}
tunable_gate! {
#[cfg(any(feature = "machine_learning", feature = "utils"))]
pub(crate) SCAN_F64_PARALLEL_MIN_ELEMS
=> scan_f64_parallel_min_elems / set_scan_f64_parallel_min_elems = 262_144
}
tunable_gate! {
#[cfg(feature = "machine_learning")]
pub(crate) TREE_TRAVERSAL_MIN_VISITS
=> tree_traversal_min_visits / set_tree_traversal_min_visits = 262_144
}
tunable_gate! {
#[cfg(feature = "machine_learning")]
pub(crate) SORT_SCAN_MIN_ELEMS
=> sort_scan_min_elems / set_sort_scan_min_elems = 8_192
}
tunable_gate! {
#[cfg(any(feature = "machine_learning", feature = "utils"))]
pub(crate) SUM_F64_PARALLEL_MIN_ELEMS
=> sum_f64_parallel_min_elems / set_sum_f64_parallel_min_elems = 262_144
}