Skip to content

Commit

Permalink
Remove empty format precision specifier (#2785)
Browse files Browse the repository at this point in the history
A format precision specifier consisting of a dot and no number actually does nothing and has no specified meaning. Currently this is silently ignored, but it may turn into a warning or error.

See rust-lang/rust#136638
  • Loading branch information
hkBst authored Feb 10, 2025
1 parent 3ad5343 commit 0ee5ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/burn-tensor/src/tensor/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub fn check_closeness<B: Backend, const D: usize>(output: &Tensor<B, D>, expect
println!("===============================");

for epsilon in [1e-1, 1e-2, 1e-3, 1e-4, 1e-5, 1e-6, 1e-7, 1e-8].iter() {
println!("{} {:.e}", "Epsilon:".bold(), epsilon);
println!("{} {:e}", "Epsilon:".bold(), epsilon);

let close = output
.clone()
Expand Down

0 comments on commit 0ee5ca9

Please sign in to comment.