add clone to candle dropout (#1814)

This commit is contained in:
Kirpal Grewal
2024-03-08 07:18:01 +00:00
committed by GitHub
parent 0a3487a776
commit 758366160e

View File

@ -74,7 +74,7 @@ pub fn dropout(xs: &Tensor, drop_p: f32) -> Result<Tensor> {
xs * mask xs * mask
} }
#[derive(Debug)] #[derive(Clone, Debug)]
pub struct Dropout { pub struct Dropout {
drop_p: f32, drop_p: f32,
} }