mirror of
https://github.com/karpathy/nanochat.git
synced 2026-06-26 16:10:04 +00:00
rustbpe: Remove redundant closure in reduce
This commit is contained in:
parent
015ce712d7
commit
bdd2e4e470
|
|
@ -362,7 +362,7 @@ impl Tokenizer {
|
|||
m
|
||||
})
|
||||
.reduce(
|
||||
|| AHashMap::new(),
|
||||
AHashMap::new,
|
||||
|mut a, b| {
|
||||
for (k, v) in b {
|
||||
*a.entry(k).or_default() += v;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user