| 219 | |
| 220 | |
| 221 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected