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

Method get_states

python/singa/opt.py:94–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 self.lr_value = self.lr(self.step_counter)
93
94 def get_states(self):
95 # skip DecayScheduler as it does not have persistent states
96 return {'step_counter': tensor.to_numpy(self.step_counter)[0]}
97
98 def set_states(self, states):
99 self.step_counter = Tensor((1,))

Callers 1

test_optimizerMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_optimizerMethod · 0.76