MCPcopy Create free account
hub / github.com/AkaliKong/MiniOneRec / __init__

Method __init__

SASRecModules_ori.py:8–13  ·  view source on GitHub ↗
(self, d_in, d_hid, dropout=0.1)

Source from the content-addressed store, hash-verified

6
7class PositionwiseFeedForward(nn.Module):
8 def __init__(self, d_in, d_hid, dropout=0.1):
9 super().__init__()
10 self.w_1 = nn.Conv1d(d_in, d_hid, 1)
11 self.w_2 = nn.Conv1d(d_hid, d_in, 1)
12 self.layer_norm = nn.LayerNorm(d_in)
13 self.dropout = nn.Dropout(dropout)
14
15 def forward(self, x):
16 residual = x

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected