MCPcopy Create free account
hub / github.com/FLC777/GLAT / __init__

Method __init__

fairseq/models/fairseq_decoder.py:16–20  ·  view source on GitHub ↗
(self, dictionary)

Source from the content-addressed store, hash-verified

14 """Base class for decoders."""
15
16 def __init__(self, dictionary):
17 super().__init__()
18 self.dictionary = dictionary
19 self.onnx_trace = False
20 self.adaptive_softmax = None
21
22
23 def forward(self, prev_output_tokens, encoder_out=None, **kwargs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected