MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / __repr__

Method __repr__

codegeex/megatron/code_generation_utils.py:625–626  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

623 score: float
624
625 def __repr__(self):
626 return f"<Beam {repr(get_tokenizer().detokenize(self.tokens))}, score={self.score}>"
627
628 def get_code(self):
629 return get_tokenizer().detokenize(self.tokens)

Callers

nothing calls this directly

Calls 2

get_tokenizerFunction · 0.90
detokenizeMethod · 0.45

Tested by

no test coverage detected