Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenNMT/CTranslate2
/ length
Method
length
include/ctranslate2/batch_reader.h:44–48 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
42
}
43
44
size_t length(size_t index = 0) const {
45
if (index >= streams.size())
46
return 0;
47
return streams[index].size();
48
}
49
};
50
51
Callers
5
get_batch_size_increment
Function · 0.80
rebatch_input
Function · 0.80
dump
Method · 0.80
VocabularyMap
Method · 0.80
replace
Function · 0.80
Calls
1
size
Method · 0.45
Tested by
no test coverage detected