mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-02-17 18:11:49 -05:00
Refactor nn.optim (#1091)
* Refactor: nn.optim.py * Refactor: nn.optim.py; Fix all tests * Refactor: Replace all optim.get_parameters() * Refactor: Revert list comp. * Refactor: Replace optim.get_state_dict * Refactor: Change quickstart.md
This commit is contained in:
@@ -67,7 +67,3 @@ class LAMB(Optimizer):
|
||||
r = 1.0
|
||||
t.assign(t.detach() - self.lr * r * up)
|
||||
self.realize([self.t] + self.m + self.v)
|
||||
|
||||
# TODO: remove this
|
||||
from tinygrad.state import get_state_dict, get_parameters # pylint: disable=unused-import # noqa: F401
|
||||
|
||||
|
||||
Reference in New Issue
Block a user