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

Method forward

examples/cnn_ms/pkg_model_code/model.py:189–200  ·  view source on GitHub ↗

Defines the computation performed in every forward propagation. Should be overridden by all subclasses. Args: *input: the input training data for the model Returns: out: the outputs of the forward propagation.

(self, *input)

Source from the content-addressed store, hash-verified

187 self.sequential = sequential
188
189 def forward(self, *input):
190 """Defines the computation performed in every forward propagation.
191
192 Should be overridden by all subclasses.
193
194 Args:
195 *input: the input training data for the model
196
197 Returns:
198 out: the outputs of the forward propagation.
199 """
200 raise NotImplementedError
201
202 def train_one_batch(self, *input, **kwargs):
203 """Defines the computation performed in every training iteration

Callers 2

compileMethod · 0.95
__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected