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

Method set_states

examples/cnn_ms/train_cnn.py:209–213  ·  view source on GitHub ↗
(self, states)

Source from the content-addressed store, hash-verified

207 return states
208
209 def set_states(self, states):
210 super().set_states(states)
211 if 'moments' in states:
212 self.moments = states['moments']
213 self.mom_value = self.momentum(self.step_counter)
214
215
216# Data augmentation

Callers 1

load_statesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected