mirror of https://github.com/commaai/tinygrad.git
982086f54c
* 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 2c35c75c950075d38c9fb8572f14640fe8235f74. * red test_pickle_define_var |
||
---|---|---|
.. | ||
.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 |