MCPcopy Create free account
hub / github.com/649453932/Chinese-Text-Classification-Pytorch / forward

Method forward

models/Transformer.py:82–85  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

80 self.feed_forward = Position_wise_Feed_Forward(dim_model, hidden, dropout)
81
82 def forward(self, x):
83 out = self.attention(x)
84 out = self.feed_forward(out)
85 return out
86
87
88class Positional_Encoding(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected