mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
don't allow jit input to be const (#14045)
* don't allow jit input to be unbuffered like const * just const to fix multi * fix rnnt
This commit is contained in:
@@ -217,7 +217,7 @@ class TestSymbolicJit(unittest.TestCase):
|
||||
def test_ones_sum(self):
|
||||
def f(a): return a.sum().realize()
|
||||
jf = TinyJit(f)
|
||||
t = Tensor.ones(10)
|
||||
t = Tensor.ones(10).contiguous()
|
||||
for i in range(1, 5):
|
||||
vi = Variable("i", 1, 10).bind(i)
|
||||
symbolic = jf(t[:vi]).item()
|
||||
|
||||
Reference in New Issue
Block a user