mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-25 23:08:06 -05:00
hotfix: this makes beautiful mnist work again, not okay
This commit is contained in:
@@ -20,7 +20,10 @@ class Optimizer:
|
||||
|
||||
def realize(self, extra=None):
|
||||
# NOTE: in extra is too late for most of the params due to issues with assign
|
||||
Tensor.corealize(extra + self.params + self.buffers if extra is not None else self.params + self.buffers)
|
||||
#Tensor.corealize(extra + self.params + self.buffers if extra is not None else self.params + self.buffers)
|
||||
# TODO: SUPER BROKEN THAT THIS FIXES IT
|
||||
if extra is not None: Tensor.corealize(extra)
|
||||
Tensor.corealize(self.params + self.buffers)
|
||||
|
||||
def step(self) -> None: raise NotImplementedError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user