revert black formatting to conform with lib style
This commit is contained in:
@@ -43,13 +43,7 @@ class PreTrainedSeq2seq(PreTrainedModel):
|
|||||||
self.decoder = decoder
|
self.decoder = decoder
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_pretrained(
|
def from_pretrained(cls, encoder_pretrained_model_name_or_path, decoder_pretrained_model_name_or_path, *model_args, **kwargs):
|
||||||
cls,
|
|
||||||
encoder_pretrained_model_name_or_path,
|
|
||||||
decoder_pretrained_model_name_or_path,
|
|
||||||
*model_args,
|
|
||||||
**kwargs
|
|
||||||
):
|
|
||||||
r""" Instantiates an encoder and a decoder from one or two base classes
|
r""" Instantiates an encoder and a decoder from one or two base classes
|
||||||
of the library from pre-trained model checkpoints.
|
of the library from pre-trained model checkpoints.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user