MCPcopy Create free account
hub / github.com/SooLab/CGFormer / __len__

Method __len__

bert/generation_utils.py:960–964  ·  view source on GitHub ↗

Number of hypotheses in the list.

(self)

Source from the content-addressed store, hash-verified

958 self.worst_score = 1e9
959
960 def __len__(self):
961 """
962 Number of hypotheses in the list.
963 """
964 return len(self.beams)
965
966 def add(self, hyp, sum_logprobs):
967 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected