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

Method forward

test/python/test_model.py:60–65  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

58 self.optimizer = opt.SGD()
59
60 def forward(self, x):
61 y = self.conv1(x)
62 y = self.bn1(y)
63 y = autograd.reshape(y, (y.shape[0], -1))
64 y = self.doublelinear1(y)
65 return y
66
67 def train_one_batch(self, x, y):
68 y_ = self.forward(x)

Callers 1

train_one_batchMethod · 0.95

Calls 1

reshapeMethod · 0.45

Tested by

no test coverage detected