MCPcopy Create free account
hub / github.com/pytorch/tutorials / forward

Method forward

intermediate_source/seq2seq_translation_tutorial.py:342–345  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

340 self.dropout = nn.Dropout(dropout_p)
341
342 def forward(self, input):
343 embedded = self.dropout(self.embedding(input))
344 output, hidden = self.gru(embedded)
345 return output, hidden
346
347######################################################################
348# The Decoder

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected