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

Method __init__

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

Source from the content-addressed store, hash-verified

47
48class Decoder(pl.LightningModule):
49 def __init__(self, layer, N):
50 super().__init__()
51 self.layers = clones(layer, N)
52 self.norm = LayerNorm(layer.size)
53
54 def forward(self, x, memory, src_mask, tgt_mask):
55 for layer in self.layers:

Callers

nothing calls this directly

Calls 3

clonesFunction · 0.85
LayerNormClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected