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:
chenyu
2026-01-06 18:15:22 -05:00
committed by GitHub
parent a8896f28e1
commit c714881832
6 changed files with 21 additions and 20 deletions

View File

@@ -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()