Add missing #[cfg(test)] attribute to tests module in activations.rs

This commit is contained in:
Palash Tyagi 2025-07-29 21:42:47 +01:00
parent 3207254564
commit 750adc72e9

View File

@ -25,6 +25,7 @@ pub fn dleaky_relu(x: &Matrix<f64>) -> Matrix<f64> {
x.map(|v| if v > 0.0 { 1.0 } else { 0.01 }) x.map(|v| if v > 0.0 { 1.0 } else { 0.01 })
} }
#[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;