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
Make ixsimpl context thread-local and differentiate conversion errors
Address PR iree-org#1130 review feedback:
- Use threading.local() for ixsimpl context instead of a module-level
global, since the C context is not thread-safe and GIL is optional
since Python 3.13.
- Extract _ixs_simplify_core that propagates conversion exceptions,
so simplify() only falls back to the sympy path on actual conversion
failures, not when ixsimpl processed the expression successfully
but could not simplify it further.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
0 commit comments