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

Method output_layer_is_updated

include/ctranslate2/layers/decoder.h:59–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 const std::vector<size_t>& restrict_ids = {});
58
59 bool output_layer_is_updated() const {
60 return !_to_original_word_id.empty();
61 }
62
63 bool is_in_output(size_t word_id) const {
64 return _to_output_word_id.find(word_id) != _to_output_word_id.end();

Callers 3

decodeFunction · 0.80
TESTFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by 1

TESTFunction · 0.64