mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 07:28:15 -05:00
remove old envvar "OPT" (#4060)
This commit is contained in:
@@ -5,7 +5,6 @@ sys.path.insert(0, str(pathlib.Path(__file__).parents[1]))
|
||||
if "FLOAT16" not in os.environ: os.environ["FLOAT16"] = "1"
|
||||
if "IMAGE" not in os.environ: os.environ["IMAGE"] = "2"
|
||||
if "NOLOCALS" not in os.environ: os.environ["NOLOCALS"] = "1"
|
||||
if "OPT" not in os.environ: os.environ["OPT"] = "99"
|
||||
|
||||
OPENPILOT_MODEL = "https://github.com/commaai/openpilot/raw/v0.9.4/selfdrive/modeld/models/supercombo.onnx"
|
||||
|
||||
|
||||
11
test/external/external_test_opt.py
vendored
11
test/external/external_test_opt.py
vendored
@@ -1,18 +1,11 @@
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
|
||||
import torch
|
||||
if "OPT" not in os.environ:
|
||||
os.environ["OPT"] = "2"
|
||||
else:
|
||||
assert int(os.environ["OPT"]) >= 2, "test is broken with OPT=0 or OPT=1"
|
||||
|
||||
import gc
|
||||
import gc, unittest
|
||||
import numpy as np
|
||||
|
||||
import unittest
|
||||
from tinygrad.tensor import Tensor, Device
|
||||
from tinygrad import nn, GlobalCounters
|
||||
from tinygrad import nn, GlobalCounters, Tensor, Device
|
||||
from tinygrad.helpers import getenv
|
||||
from tinygrad.nn import optim
|
||||
#from tinygrad.lazy import PUSH_PERMUTES
|
||||
|
||||
Reference in New Issue
Block a user