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

Method forward

src/shape_assembly/models/train/transformer.py:54–57  ·  view source on GitHub ↗
(self, x, memory, src_mask, tgt_mask)

Source from the content-addressed store, hash-verified

52 self.norm = LayerNorm(layer.size)
53
54 def forward(self, x, memory, src_mask, tgt_mask):
55 for layer in self.layers:
56 x = layer(x, memory, src_mask, tgt_mask)
57 return self.norm(x)
58
59class LayerNorm(pl.LightningModule):
60 def __init__(self, features, eps=1e-6):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected