cleanup uops (#3605)

using `is` to compare with enums, remove long lines and slightly more compact
This commit is contained in:
chenyu
2024-03-04 11:03:14 -05:00
committed by GitHub
parent 94679322a3
commit c3b8d285aa
2 changed files with 25 additions and 26 deletions

View File

@@ -105,6 +105,8 @@ jobs:
source venv/bin/activate
pip install $GITHUB_WORKSPACE
python -c "from tinygrad.tensor import Tensor; print(Tensor([1,2,3,4,5]))"
- name: Test DEBUG
run: DEBUG=100 python3 -c "from tinygrad import Tensor; N = 1024; a, b = Tensor.rand(N, N), Tensor.rand(N, N); c = (a.reshape(N, 1, N) * b.T.reshape(1, N, N)).sum(axis=2); print((c.numpy() - (a.numpy() @ b.numpy())).mean())"
- name: Repo line count <6000 lines
run: MAX_LINE_COUNT=6000 python sz.py