mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 11:37:11 +00:00
add clone to candle dropout (#1814)
This commit is contained in:
@ -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,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user