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

Method forward

examples/onnx/training/train.py:117–120  ·  view source on GitHub ↗
(self, *x)

Source from the content-addressed store, hash-verified

115 self.linear = layer.Linear(in_dim, num_classes)
116
117 def forward(self, *x):
118 y = super(MyModel, self).forward(*x, last_layers=self.last_layers)[0]
119 y = self.linear(y)
120 return y
121
122 def train_one_batch(self, x, y, dist_option, spars):
123 out = self.forward(x)

Callers 1

train_one_batchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected