MCPcopy Create free account
hub / github.com/apache/singa / forward

Method forward

test/python/test_model.py:121–125  ·  view source on GitHub ↗
(self, x, seq_lengths)

Source from the content-addressed store, hash-verified

119 self.optimizer = opt.SGD(0.1)
120
121 def forward(self, x, seq_lengths):
122 y = self.lstm(x, seq_lengths=seq_lengths)
123 y = autograd.reshape(y, (y.shape[0], -1))
124 y = self.l1(y)
125 return y
126
127
128class LSTMModel2(model.Model):

Callers 1

Calls 2

reshapeMethod · 0.45
l1Method · 0.45

Tested by

no test coverage detected