Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/huggingface/transformers
/ tgt_lens
Method
tgt_lens
examples/seq2seq/utils.py:142–143 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
140
141
@property
142
def
tgt_lens(self):
143
return
lmap(len, self.target)
144
145
def
make_sortish_sampler(self, batch_size):
146
return
SortishSampler(self.source, batch_size)
Callers
nothing calls this directly
Calls
1
lmap
Function · 0.70
Tested by
no test coverage detected