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

Method forward

src/shape_assembly/models/train/transformer.py:87–89  ·  view source on GitHub ↗
(self, x, mask)

Source from the content-addressed store, hash-verified

85 self.size = size
86
87 def forward(self, x, mask):
88 x = self.sublayer[0](x, lambda x: self.self_attn(x, x, x, mask))
89 return self.sublayer[1](x, self.feed_forward)
90
91class DecoderLayer(pl.LightningModule):
92

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected