mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
* make UOps.VALID compile
* fixable tests
* bufs dedup
* cleanup the CONST spec
* regenerate dataset with graph_rewrite
```py
def rewrite_const(const:UOp, st_src:UOp) -> UOp:
st: ShapeTracker = st_src.arg
return UOp(UOps.VALID, dtypes.bool, (st.to_uop(),)).where(UOp.const(const.dtype, const.arg), UOp.const(const.dtype, 0))
pm = PatternMatcher([(UPat(UOps.CONST, name="const", src=(UPat(UOps.SHAPETRACKER, name="st_src"),)), rewrite_const)])
```
* rm arg
* remove arg
* revert arg removal
This reverts commit
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| __init__.py | ||
| coco.py | ||
| fake_imagenet_from_mnist.py | ||
| imagenet.py | ||
| imagenet_download.py | ||
| kits19.py | ||
| librispeech.py | ||
| openimages.py | ||
| preprocess_imagenet.py | ||
| sops.gz | ||
| squad.py | ||
| wikipedia.py | ||
| wikipedia_download.py | ||