Skip to content

Commit

Permalink
Fix batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Mar 12, 2024
1 parent 89d21ce commit 7bcf36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion candle-nn/src/layer_norm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl crate::Module for LayerNorm {
Device::Cpu | Device::Metal(_) => return self.forward_slow(x),
Device::Cuda(dev) => dev
};
let (m,n) = x.dims2()?;
let (b, m,n) = x.dims3()?;

let mean = x.zeros_like()?;
let rstd = x.zeros_like()?;
Expand Down

0 comments on commit 7bcf36a

Please sign in to comment.