MCPcopy Create free account
hub / github.com/HA-Transformer/MAT / CompositeEncoder

Class CompositeEncoder

fairseq/models/composite_encoder.py:9–55  ·  view source on GitHub ↗

A wrapper around a dictionary of :class:`FairseqEncoder` objects. We run forward on each encoder and return a dictionary of outputs. The first encoder's dictionary is used for initialization. Args: encoders (dict): a dictionary of :class:`FairseqEncoder` objects.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected