Skip to content

Commit

Permalink
Bugfix for applying the bias in conv1d-transpose. (#1732)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare authored Feb 18, 2024
1 parent 1fb7287 commit 3ba3744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion candle-nn/src/conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl crate::Module for ConvTranspose1d {
None => Ok(x),
Some(bias) => {
let b = bias.dims1()?;
let bias = bias.reshape((1, b, 1, 1))?;
let bias = bias.reshape((1, b, 1))?;
Ok(x.broadcast_add(&bias)?)
}
}
Expand Down

0 comments on commit 3ba3744

Please sign in to comment.