MCPcopy Create free account
hub / github.com/csxmli2016/MARCONetPlusPlus / forward

Method forward

networks/transocr_arch.py:149–152  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

147 self.register_buffer('pe', pe)
148
149 def forward(self, x):
150 x = x + Variable(self.pe[:, :x.size(1)],
151 requires_grad=False)
152 return self.dropout(x)
153
154
155class MultiHeadedAttention(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected