type hints

This commit is contained in:
Alexander Goryunov 2023-07-10 20:48:32 +03:00
parent a2063b7000
commit 341ef458b4

View File

@ -11,7 +11,7 @@ from torchscale.architecture.encoder import Encoder
class EncoderDecoder(nn.Module): class EncoderDecoder(nn.Module):
def __init__( def __init__(
self, self,
args, args: EncoderDecoderConfig,
encoder_embed_tokens=None, encoder_embed_tokens=None,
encoder_embed_positions=None, encoder_embed_positions=None,
decoder_embed_tokens=None, decoder_embed_tokens=None,