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

Method forward

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

Source from the content-addressed store, hash-verified

64 self.eps = eps
65
66 def forward(self, x):
67 mean = x.mean(-1, keepdim=True)
68 std = x.std(-1, keepdim=True)
69 return self.a_2 * (x - mean) / (std + self.eps) + self.b_2
70
71class SublayerConnection(pl.LightningModule):
72 def __init__(self, size):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected