MCPcopy Create free account
hub / github.com/TEA-Lab/TwoByTwo / forward

Method forward

src/shape_assembly/models/train/transformer.py:34–35  ·  view source on GitHub ↗
(self, src, tgt, src_mask, tgt_mask)

Source from the content-addressed store, hash-verified

32 return self.generator(self.decoder(self.tgt_embed(tgt), memory, src_mask, tgt_mask))
33
34 def forward(self, src, tgt, src_mask, tgt_mask):
35 return self.decode(self.encode(src, src_mask), src_mask, tgt, tgt_mask)
36
37class Encoder(pl.LightningModule):
38 def __init__(self, layer, N):

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.95
encodeMethod · 0.95

Tested by

no test coverage detected