def __init__(self, n_vocab: int, d_model: int, transformer: CompressiveTransformer):
    super().__init__()
    self.src_embed = nn.Embedding(n_vocab, d_model)
    self.transformer = transformer
    self.generator = nn.Linear(d_model, n_vocab)
    self.mask_x = None
    self.mask_mem = None
def __init__(self, n_vocab: int, d_model: int, transformer: CompressiveTransformer):
    super().__init__()
    self.src_embed = nn.Embedding(n_vocab, d_model)
    self.transformer = transformer
    self.generator = nn.Linear(d_model, n_vocab)
    self.mask_x = None
    self.mask_mem = None