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

Method __call__

examples/cnn_ms/pkg_model_code/model.py:241–245  ·  view source on GitHub ↗
(self, *input, **kwargs)

Source from the content-addressed store, hash-verified

239 return self.__class__.__name__
240
241 def __call__(self, *input, **kwargs):
242 if self.training:
243 return self.train_one_batch(*input, **kwargs)
244 else:
245 return self.forward(*input, **kwargs)
246
247 def save_states(self, fpath, aux_states={}):
248 """Save states.

Callers

nothing calls this directly

Calls 2

train_one_batchMethod · 0.95
forwardMethod · 0.95

Tested by

no test coverage detected