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

Method __call__

python/singa/model.py:238–242  ·  view source on GitHub ↗
(self, *input, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

train_one_batchMethod · 0.95
forwardMethod · 0.95

Tested by

no test coverage detected