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

Method set_states

python/singa/opt.py:678–683  ·  view source on GitHub ↗
(self, states)

Source from the content-addressed store, hash-verified

676 return states
677
678 def set_states(self, states):
679 super().set_states(states)
680 if 'm' in states:
681 self.m = states['m']
682 if 'v' in states:
683 self.v = states['v']
684
685
686class DistOpt(object):

Callers

nothing calls this directly

Calls 1

set_statesMethod · 0.45

Tested by

no test coverage detected