Skip to content

Commit

Permalink
Remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Mar 12, 2024
1 parent 27df27b commit e64f8c2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions candle-nn/src/layer_norm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,11 @@ impl LayerNorm {
//#[cfg(not(feature = "cuda"))]
impl crate::Module for LayerNorm {
fn forward(&self, x: &Tensor) -> Result<Tensor> {
dbg!(self.weight.mean_all());
let start = SystemTime::now()
.duration_since(UNIX_EPOCH)
.expect("Time travel has occurred!")
.as_micros();
let res = self.forward_slow(x);
let end = SystemTime::now()
.duration_since(UNIX_EPOCH)
.expect("Time travel has occurred!")
.as_micros();
println!("{}us", end - start);
res
}
}
Expand Down

0 comments on commit e64f8c2

Please sign in to comment.