MCPcopy Create free account
hub / github.com/buaacxf/VIPTR / forward

Method forward

modules/sequence_modeling.py:29–37  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

27 self.embedding = nn.Linear(nHidden * 2, nOut)
28
29 def forward(self, input):
30 recurrent, _ = self.rnn(input)
31 T, b, h = recurrent.size()
32 t_rec = recurrent.view(T * b, h)
33
34 output = self.embedding(t_rec) # [T * b, nOut]
35 output = output.view(T, b, -1)
36
37 return output
38
39class BidirectionalLSTM(nn.Module):
40

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected