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

Method forward

examples/msmlp/model.py:97–101  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

95 self.sum_error = SumErrorLayer()
96
97 def forward(self, inputs):
98 y = self.linear1(inputs)
99 y = self.relu(y)
100 y = self.linear2(y)
101 return y
102
103 def train_one_batch(self, x, y, synflow_flag, dist_option, spars):
104 out = self.forward(x)

Callers 1

train_one_batchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected