MCPcopy Create free account
hub / github.com/Newmu/dcgan_code / NoUpdate

Class NoUpdate

lib/updates.py:221–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220
221class NoUpdate(Update):
222
223 def __init__(self, lr=0.01, momentum=0.9, *args, **kwargs):
224 Update.__init__(self, *args, **kwargs)
225 self.__dict__.update(locals())
226
227 def __call__(self, params, cost):
228 updates = []
229 for p in params:
230 updates.append((p, p))
231 return updates

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected