Load a pretrained FairseqEncoder or FairseqDecoder from checkpoint into the provided `component` object. If state_dict fails to load, there may be a mismatch in the architecture of the corresponding `component` found in the `checkpoint` file.
(
component: Union[FairseqEncoder, FairseqDecoder], checkpoint: str
)
source not stored for this graph (policy: none)
nothing calls this directly
no test coverage detected