MCPcopy Create free account
hub / github.com/Tencent/NeuralNLP-NeuralClassifier / forward

Method forward

model/embedding.py:225–226  ·  view source on GitHub ↗
(self, src_pos)

Source from the content-addressed store, hash-verified

223 freeze=True)
224
225 def forward(self, src_pos):
226 return self.position_enc(src_pos)
227
228 @staticmethod
229 def get_sinusoid_encoding_table(n_position, d_hid, padding_idx=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected