move device to device.py (#2466)

* move device to device.py

* pylint test --disable R,C,W,E --enable E0611

* fix tests
This commit is contained in:
George Hotz
2023-11-27 11:34:37 -08:00
committed by GitHub
parent 262cd26d28
commit 9e07824542
62 changed files with 281 additions and 264 deletions

View File

@@ -3,7 +3,7 @@ import unittest
import secrets
import string
from tinygrad.tensor import Tensor
from tinygrad.ops import Device
from tinygrad import Device
from tinygrad.helpers import diskcache
def generate_random_string(length=16):