mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
Fix mypy examples/beautiful_*.py (#6978)
* fix mypy examples/beautiful_*.py
* backwards
* add test
* Revert "add test"
This reverts commit 4d88845ba3.
---------
Co-authored-by: chenyu <chenyu@fastmail.com>
This commit is contained in:
committed by
GitHub
parent
4ef5310039
commit
859d6d0407
@@ -4,7 +4,7 @@ from tinygrad import Tensor, TinyJit, nn, GlobalCounters, Device
|
||||
from tinygrad.helpers import getenv, colored, trange
|
||||
from tinygrad.nn.datasets import mnist
|
||||
|
||||
GPUS = [f'{Device.DEFAULT}:{i}' for i in range(getenv("GPUS", 2))]
|
||||
GPUS = tuple(f'{Device.DEFAULT}:{i}' for i in range(getenv("GPUS", 2)))
|
||||
|
||||
class Model:
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user