CBM/transformers.py
def forward(self, src, src_mask, query):
        "Take in and process masked src and target sequences."
        src_embed, query_embed = self.embedding(src, query)
        src_embed = self.position(src_embed)
        
        out = self.encode(src_embed, None)
        return self.decode(out, query_embed)
Take in and process masked src and target sequences.
Take in and process masked src and target sequences.
Take in and process masked src and target sequences .
def forward(self, src, src_mask, query):
        src_embed, query_embed = self.embedding(src, query)
        src_embed = self.position(src_embed)
        out = self.encode(src_embed, None)
        return self.decode(out, query_embed)
def forward ( self , src , src_mask , query ) : src_embed , query_embed = self . embedding ( src , query ) src_embed = self . position ( src_embed ) out = self . encode ( src_embed , None ) return self . decode ( out , query_embed )
Take in and process masked src and target sequences.
Take in and process masked src and target sequences .
"Take in and process masked src and target sequences."
self
src
src_mask
query