mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 03:28:50 +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
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Dropout {
|
||||
drop_p: f32,
|
||||
}
|
||||
|
Reference in New Issue
Block a user