Add clone to various nn layers. (#910)

This commit is contained in:
Laurent Mazare
2023-09-20 11:33:51 +01:00
committed by GitHub
parent f685b2231c
commit 7b1ddcff47
7 changed files with 11 additions and 11 deletions

View File

@ -20,7 +20,7 @@ impl Default for Conv1dConfig {
}
}
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct Conv1d {
weight: Tensor,
bias: Option<Tensor>,
@ -88,7 +88,7 @@ impl Default for Conv2dConfig {
}
}
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct Conv2d {
weight: Tensor,
bias: Option<Tensor>,
@ -157,7 +157,7 @@ impl Default for ConvTranspose2dConfig {
}
}
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct ConvTranspose2d {
weight: Tensor,
bias: Option<Tensor>,