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

Method empty

include/ctranslate2/batch_reader.h:143–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 }
142
143 bool empty() const {
144 return examples.empty();
145 }
146
147 std::vector<std::vector<std::string>> get_stream(size_t index) const;
148 };

Callers 15

generate_batchMethod · 0.45
unload_modelMethod · 0.45
load_modelMethod · 0.45
translate_batchMethod · 0.45
mainFunction · 0.45
read_int_from_envFunction · 0.45
from_text_fileMethod · 0.45
score_sequencesFunction · 0.45
translate_batch_asyncMethod · 0.45
buffer_loopMethod · 0.45
storage_view.ccFile · 0.45
get_streamMethod · 0.45

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.36
check_empty_resultFunction · 0.36