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

Method forward

examples/mlp/model.py:45–49  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

43 self.softmax_cross_entropy = layer.SoftMaxCrossEntropy()
44
45 def forward(self, inputs):
46 y = self.linear1(inputs)
47 y = self.relu(y)
48 y = self.linear2(y)
49 return y
50
51 def train_one_batch(self, x, y, dist_option, spars):
52 out = self.forward(x)

Callers 1

train_one_batchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected