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

Method load_state_dict

fairseq/models/fairseq_model.py:61–69  ·  view source on GitHub ↗

Copies parameters and buffers from *state_dict* into this module and its descendants. Overrides the method in :class:`nn.Module`. Compared with that method this additionally "upgrades" *state_dicts* from old checkpoints.

(self, state_dict, strict=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

upgrade_state_dictMethod · 0.95

Tested by

no test coverage detected