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

Method forward

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

Source from the content-addressed store, hash-verified

99 self.sum_error = SumErrorLayer()
100
101 def forward(self, inputs):
102 y = self.linear1(inputs)
103 y = self.relu(y)
104 y = self.linear2(y)
105 return y
106
107 def train_one_batch(self, x, y, dist_option, spars, synflow_flag):
108 # print ("in train_one_batch")

Callers 1

train_one_batchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected