mirror of https://github.com/commaai/tinygrad.git
hotfix: add TYPED=1 support
This commit is contained in:
parent
2d53e47b14
commit
5132bab48d
|
@ -1,6 +1,10 @@
|
|||
import os
|
||||
if int(os.getenv("TYPED", "0")):
|
||||
from typeguard import install_import_hook
|
||||
install_import_hook(__name__)
|
||||
from tinygrad.tensor import Tensor # noqa: F401
|
||||
from tinygrad.engine.jit import TinyJit # noqa: F401
|
||||
from tinygrad.shape.symbolic import Variable # noqa: F401
|
||||
from tinygrad.dtype import dtypes # noqa: F401
|
||||
from tinygrad.helpers import GlobalCounters, fetch, Context # noqa: F401
|
||||
from tinygrad.helpers import GlobalCounters, fetch, Context, getenv # noqa: F401
|
||||
from tinygrad.device import Device # noqa: F401
|
Loading…
Reference in New Issue