MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / num_examples

Method num_examples

include/ctranslate2/batch_reader.h:139–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 std::vector<size_t> example_index; // Index of each example in the original input.
138
139 size_t num_examples() const {
140 return examples.size();
141 }
142
143 bool empty() const {
144 return examples.empty();

Callers 1

post_examplesMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected