MCPcopy 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_incrementFunction · 0.80
rebatch_inputFunction · 0.80
dumpMethod · 0.80
VocabularyMapMethod · 0.80
replaceFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected