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

Function register_model

fairseq/models/__init__.py:51–79  ·  view source on GitHub ↗

New model types can be added to fairseq with the :func:`register_model` function decorator. For example:: @register_model('lstm') class LSTM(FairseqEncoderDecoderModel): (...) .. note:: All models must implement the :class:`BaseFairseqModel` interface.

(name)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected