diff --git a/examples/openpilot/compile3.py b/examples/openpilot/compile3.py index 677c0eb4c6..def2e2c949 100644 --- a/examples/openpilot/compile3.py +++ b/examples/openpilot/compile3.py @@ -38,7 +38,7 @@ def compile(onnx_file): np.testing.assert_equal(test_val, ret, "JIT run failed") print("jit run validated") - # checks from compile2 + # check gated read_image usage kernel_count = 0 read_image_count = 0 gated_read_image_count = 0 diff --git a/tinygrad/codegen/late/linearizer.py b/tinygrad/codegen/late/linearizer.py index c44aa3f7c4..6471ec76f1 100644 --- a/tinygrad/codegen/late/linearizer.py +++ b/tinygrad/codegen/late/linearizer.py @@ -41,7 +41,7 @@ def linearize(sink:UOp) -> list[UOp]: # number the uops in "ideal" order nkey = {u:i for i,u in enumerate(sorted(lst, key=lambda x: priorities[x]+(x.tuplize if TUPLE_ORDER else ())))} - # then force then to be toposorted in as close to the ideal order as possible + # then force them to be toposorted in as close to the ideal order as possible heap = [(-nkey[sink], sink)] newlst = [] while heap: diff --git a/tinygrad/codegen/simplify.py b/tinygrad/codegen/simplify.py index dfb2358654..3e3514e7cb 100644 --- a/tinygrad/codegen/simplify.py +++ b/tinygrad/codegen/simplify.py @@ -34,7 +34,6 @@ def simplify_merge_adjacent(u:UOp) -> UOp|None: # check if it simplifies if count_divmod(nidx) <= count_divmod(u): u = nidx - continue return u pm_simplify_ranges = PatternMatcher([