Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/huggingface/transformers
/ lmap
Function
lmap
examples/seq2seq/utils.py:58–60 ·
view source on GitHub ↗
list(map(f, x))
(f: Callable, x: Iterable)
Source
from the content-addressed store, hash-verified
56
57
58
def
lmap(f: Callable, x: Iterable) -> List:
59
""
"list(map(f, x))"
""
60
return
list(map(f, x))
61
62
63
def
calculate_bleu_score(output_lns, refs_lns, **kwargs) -> dict:
Callers
7
ids_to_clean_text
Method · 0.90
_generative_step
Method · 0.90
encode_file
Function · 0.70
src_lens
Method · 0.70
tgt_lens
Method · 0.70
assert_all_frozen
Function · 0.70
test_distill_checkpointing_with_teacher
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_distill_checkpointing_with_teacher
Method · 0.56