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

Method forward

SASRecModules_ori.py:15–22  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

13 self.dropout = nn.Dropout(dropout)
14
15 def forward(self, x):
16 residual = x
17 output = x.transpose(1, 2)
18 output = self.w_2(F.relu(self.w_1(output)))
19 output = output.transpose(1, 2)
20 output = self.dropout(output)
21 output = self.layer_norm(output + residual)
22 return output
23
24
25

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected