mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
Add missing #[cfg(test)] attribute to tests module in activations.rs
This commit is contained in:
parent
3207254564
commit
750adc72e9
@ -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::*;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user