MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / forward

Method forward

examples/pytorch/gpt/utils/gpt_decoder.py:342–343  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

340
341 @abstractmethod
342 def forward(self, *args, **kwargs):
343 raise NotImplementedError
344
345 def set_weight(self, weight: GptLayerWeights):
346 old_weight_dtype = self.weight.dtype if self.weight is not None else None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected