You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Context:** It is not entirely clear why, but some [functions return
strings in their function
annotations](https://github.com/python/cpython/blob/3.10/Lib/inspect.py#L2117-L2120).
This is not enough to perform AOT compilation, so we should not do AOT
compilation in these cases.
**Description of the Change:** Limit AOT compilation to instances of
type and jax.core.ShapedArray.
**Benefits:** `expm` (and similar functions) can be called as
`qjit(expm)`
**Possible Drawbacks:** None
**Related GitHub Issues:** #1077
For example,
The same JAX function works fine when used within a defined function that is qjitted.
This is because of unexpected type annotations:
The text was updated successfully, but these errors were encountered: