Bug jit(external_func)
Created originally on Bitbucket by paugier (Pierre Augier)
This should work… but it does not work!
2 files:
util_for_bug.py
def fib(n: int):
"""fibonacci"""
if n < 2:
return n
return fib(n - 1) + fib(n - 2)
2. main.py
from transonic import jit
from util_for_bug import fib
fib_jitted = jit(fib)
assert fib(2) == fib_jitted(2)
@{5aed8fd1347761310e25811e} Can you please fix this one ? (and same thing for boost
)