MCPcopy Index your code
hub / github.com/pytorch/tutorials / forward

Method forward

intermediate_source/char_rnn_classification_tutorial.py:249–254  ·  view source on GitHub ↗
(self, line_tensor)

Source from the content-addressed store, hash-verified

247 self.softmax = nn.LogSoftmax(dim=1)
248
249 def forward(self, line_tensor):
250 rnn_out, hidden = self.rnn(line_tensor)
251 output = self.h2o(hidden[0])
252 output = self.softmax(output)
253
254 return output
255
256
257###########################

Callers 1

trainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected