Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/huggingface/transformers
/ key
Method
key
examples/seq2seq/utils.py:155–156 ·
view source on GitHub ↗
(self, i)
Source
from the content-addressed store, hash-verified
153
self.data, self.bs = data, batch_size
154
155
def
key(self, i):
156
return
len(self.data[i])
157
158
def
__len__(self) -> int:
159
return
len(self.data)
Callers
11
__iter__
Method · 0.95
call
Method · 0.80
call
Method · 0.80
call
Method · 0.80
call
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected