MCPcopy Create free account
hub / github.com/Mew233/pairwise / __init__

Method __init__

pairwise/models/pairwise.py:20–24  ·  view source on GitHub ↗
(self, d_model, N, heads, dropout)

Source from the content-addressed store, hash-verified

18
19class Encoder(nn.Module):
20 def __init__(self, d_model, N, heads, dropout):
21 super().__init__()
22 self.N = N
23 self.layers = get_clones(Layer(d_model, heads, dropout), N)
24 self.norm = Norm(d_model)
25
26 def forward(self, src, mask=None):
27 x = src

Callers

nothing calls this directly

Calls 4

LayerClass · 0.90
NormClass · 0.90
get_clonesFunction · 0.70
__init__Method · 0.45

Tested by

no test coverage detected