Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
37
class
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
clones
Function · 0.85
LayerNorm
Class · 0.85
Tested by
no test coverage detected