Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Sep 30, 2024
1 parent 21b82b1 commit 324dd7a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tokenizers/src/tokenizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1181,11 +1181,10 @@ where
};

trainer.feed(
sequences.map(|s| {
sequences.inspect(|s| {
if let Some(progress) = &progress {
progress.inc(s.len() as u64)
}
s
}),
|seq| {
let normalized = self.do_normalize(seq.as_ref())?;
Expand Down Expand Up @@ -1233,11 +1232,10 @@ where
};

trainer.feed(
sequences.map(|s| {
sequences.inspect(|_s| {
if let Some(progress) = &progress {
progress.inc(1)
}
s
}),
|seq| {
let normalized = self.do_normalize(seq.as_ref())?;
Expand Down

0 comments on commit 324dd7a

Please sign in to comment.