We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ff56c0 commit 3e736bbCopy full SHA for 3e736bb
tokenizers/src/models/bpe/trainer.rs
@@ -282,8 +282,8 @@ impl BpeTrainer {
282
for c in &self.initial_alphabet {
283
alphabet
284
.entry(*c)
285
- .and_modify(|cnt| *cnt = std::usize::MAX)
286
- .or_insert(std::usize::MAX);
+ .and_modify(|cnt| *cnt = usize::MAX)
+ .or_insert(usize::MAX);
287
}
288
289
let mut kept = alphabet.iter().collect::<Vec<_>>();
0 commit comments