Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FLC777/GLAT
/ __init__
Method
__init__
fairseq/models/fairseq_model.py:526–529 ·
view source on GitHub ↗
(self, encoder)
Source
from the content-addressed store, hash-verified
524
""
"
525
526
def
__init__(self, encoder):
527
super().__init__()
528
self.encoder = encoder
529
assert isinstance(self.encoder, FairseqEncoder)
530
531
def
forward(self, src_tokens, src_lengths, **kwargs):
532
""
"
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected