mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
simpler TinyJit inside TinyJit detection (#5219)
* simpler TinyJit inside TinyJit detection
suggested in 73395b998b (commitcomment-143660402)
* cannot repro...
* clear the way out
* finally clear
This commit is contained in:
@@ -392,6 +392,8 @@ class TestJitInsideJit(unittest.TestCase):
|
||||
@TinyJit
|
||||
def g(t): return f(t) * 3
|
||||
|
||||
# NOTE: first does not raise
|
||||
g(Tensor([1])).realize()
|
||||
with self.assertRaisesRegex(RuntimeError, "having TinyJit inside another TinyJit is not supported"):
|
||||
g(Tensor([1])).realize()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user