Last active
October 20, 2021 14:09
-
-
Save davidmezzetti/12212971c7eeaca7621f2aa545444d2d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SimpleEmbeddings(nn.Module): | |
def __init__(self, embeddings): | |
super().__init__() | |
self.embeddings = embeddings | |
def forward(self, input_ids=None, **kwargs): | |
return (self.embeddings(input_ids),) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment