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

Method process

generation_utils.py:119–127  ·  view source on GitHub ↗
(
            self,
            input_ids: torch.LongTensor,
            next_scores: torch.FloatTensor,
            next_tokens: torch.LongTensor,
            next_indices: torch.LongTensor,
            **kwargs
    )

Source from the content-addressed store, hash-verified

117
118 @abstractmethod
119 def process(
120 self,
121 input_ids: torch.LongTensor,
122 next_scores: torch.FloatTensor,
123 next_tokens: torch.LongTensor,
124 next_indices: torch.LongTensor,
125 **kwargs
126 ) -> Tuple[torch.Tensor]:
127 raise NotImplementedError("This is an abstract method.")
128
129 @abstractmethod
130 def finalize(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected