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

Method __init__

examples/pytorch/bart/utils/ft_decoding.py:322–325  ·  view source on GitHub ↗
(self, encoder, decoding)

Source from the content-addressed store, hash-verified

320
321class FTBart(nn.Module):
322 def __init__(self, encoder, decoding):
323 super().__init__()
324 self.encoder = encoder
325 self.decoding = decoding
326
327 def forward(self, input_ids, attention_mask, inputs_embeds, beam_size, max_seq_len,
328 top_k, top_p, beam_search_diversity_rate,

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected