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

Method forward

examples/pytorch/bart/utils/ft_encoder.py:247–249  ·  view source on GitHub ↗
(self, input, seq_len, inputs_embeds=None)

Source from the content-addressed store, hash-verified

245 bart_with_bias, mbart, position_embedding_type, activation_type, layernorm_type)
246
247 def forward(self, input, seq_len, inputs_embeds=None):
248 output = self.encoder.forward(input, seq_len, inputs_embeds)
249 return output

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected