1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#[derive(Debug)] pub struct Optimisations { pub tf32_matmul: bool, } impl Default for Optimisations { fn default() -> Self { Self { tf32_matmul: true } } } impl Optimisations { pub fn all_off() -> Self { Self { tf32_matmul: false } } }