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

Method __init__

src/shape_assembly/models/train/transformer.py:38–41  ·  view source on GitHub ↗
(self, layer, N)

Source from the content-addressed store, hash-verified

36
37class Encoder(pl.LightningModule):
38 def __init__(self, layer, N):
39 super().__init__()
40 self.layers = clones(layer, N)
41 self.norm = LayerNorm(layer.size)
42
43 def forward(self, x, mask):
44 for layer in self.layers:

Callers 9

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

clonesFunction · 0.85
LayerNormClass · 0.85

Tested by

no test coverage detected