Skip to content

Commit

Permalink
more test cleanups (tinygrad#2631)
Browse files Browse the repository at this point in the history
* more test cleanups

* move test example back
  • Loading branch information
geohot authored Dec 6, 2023
1 parent a63f48d commit 232ed2a
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 112 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
pass_filenames: false
- id: mypy
name: mypy
entry: mypy tinygrad/ extra/helpers.py
entry: mypy tinygrad/
language: system
always_run: true
pass_filenames: false
Expand All @@ -41,7 +41,7 @@ repos:
pass_filenames: false
- id: example
name: multi device tests
entry: python3 test/external/test_example.py
entry: python3 test/external/external_test_example.py
language: system
always_run: true
pass_filenames: false
Expand Down
3 changes: 1 addition & 2 deletions examples/mlperf/model_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ def input_fixup(x):

# evaluation on the mlperf classes of the validation set from imagenet
from extra.datasets.imagenet import iterate
from extra.helpers import cross_process

BS = 64
n,d = 0,0
st = time.perf_counter()
iterator = cross_process(lambda: iterate(BS))
iterator = iterate(BS)
x,ny = next(iterator)
dat = Tensor(x)
while dat is not None:
Expand Down
50 changes: 0 additions & 50 deletions extra/helpers.py

This file was deleted.

1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"opencv-python",
"tabulate",
"safetensors",
"cloudpickle",
"transformers",
"sentencepiece",
"tiktoken",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added test/extra/__init__.py
Empty file.
57 changes: 0 additions & 57 deletions test/extra/test_extra_helpers.py

This file was deleted.

Empty file added test/imported/__init__.py
Empty file.
Empty file added test/models/__init__.py
Empty file.
Empty file added test/unit/__init__.py
Empty file.

0 comments on commit 232ed2a

Please sign in to comment.