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

Method __init__

fairseq/models/fairseq_encoder.py:29–31  ·  view source on GitHub ↗
(self, dictionary)

Source from the content-addressed store, hash-verified

27 """Base class for encoders."""
28
29 def __init__(self, dictionary):
30 super().__init__()
31 self.dictionary = dictionary
32
33 def forward(self, src_tokens, src_lengths=None, **kwargs):
34 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected