1
0
forked from IQ.Lvbs/IQ.Pilot

IQ.Pilot Prebuilt Release @ ab07000

This commit is contained in:
IQ.Lvbs history cleanup
2026-08-22 23:42:42 -05:00
commit 9f9c9a70cc
3729 changed files with 778697 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!/usr/bin/env python3
"""Standalone repro/regression for issue #16335."""
import subprocess
from pathlib import Path
from tinygrad import Tensor, Context
from tinygrad.nn.onnx import OnnxRunner
VISION_ONNX = Path("/tmp/deep_vision.onnx")
URL = "https://raw.githubusercontent.com/haraschax/filedump/master/deep_vision.onnx"
def main():
if not VISION_ONNX.is_file():
subprocess.run(["curl", "-L", "--fail", "--silent", "--output", str(VISION_ONNX), URL], check=True)
with Context(IMAGE=1, FLOAT16=1):
runner = OnnxRunner(str(VISION_ONNX))
img = Tensor.zeros(1, 12, 128, 256, dtype="uint8").contiguous().realize()
big_img = Tensor.zeros(1, 12, 128, 256, dtype="uint8").contiguous().realize()
out = next(iter(runner({"img": img, "big_img": big_img}).values())).cast("float32")
out.realize() # END(STORE) assertion fires here during scheduling, before any kernel executes
print("PASS: scheduled #16335 model without the END(STORE) assertion")
if __name__ == "__main__":
main()