//! Burn tensor and autodiff tests for CubeCL backends with fusion enabled. #![allow( clippy::single_range_in_vec_init, clippy::duplicate_mod, reason = "false positive" )] extern crate alloc; #[cfg(feature = "cube")] #[path = "."] mod fusion { pub type FloatElemType = f32; pub type IntElemType = i32; #[path = "common/backend.rs"] mod backend; pub use backend::prelude::*; // NOTE: // We re-include the tensor and autodiff test suites after overriding `TestBackend` // with `Fusion`. This intentionally duplicates module names and test // logic to execute the same tests under fusion. pub type TestBackend = burn_fusion::Fusion; pub type TestTensor = Tensor; pub type TestTensorInt = Tensor; pub type TestTensorBool = Tensor; // Tensor tests mod tensor { include!("common/tensor.rs"); } // Autodiff tests mod autodiff { include!("common/autodiff.rs"); } // Fusion tests include!("fused_ops/mod.rs"); }