MCPcopy Create free account
hub / github.com/THUDM/GLM / __call__

Method __call__

generation_utils.py:410–413  ·  view source on GitHub ↗
(self, input_ids: torch.LongTensor, scores: torch.FloatTensor)

Source from the content-addressed store, hash-verified

408 """
409
410 def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor) -> torch.FloatTensor:
411 for processor in self:
412 scores = processor(input_ids, scores)
413 return scores
414
415
416class MinLengthLogitsProcessor(LogitsProcessor):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected