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

Method forward

src/shape_assembly/models/train/transformer.py:76–77  ·  view source on GitHub ↗
(self, x, sublayer)

Source from the content-addressed store, hash-verified

74 self.norm = LayerNorm(size)
75
76 def forward(self, x, sublayer):
77 return x + sublayer(self.norm(x))
78
79class EncoderLayer(pl.LightningModule):
80 def __init__(self, size, self_attn, feed_forward):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected