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
Add memory management to JAX backend _direct_assign methods
- Implement memory cleanup in JaxVariable._direct_assign() to prevent memory leaks
- Store old values before assignment and clean up references to non-sharded arrays
- For sharded arrays, rely on garbage collection to avoid breaking references
- Apply same memory management to NnxVariable._direct_assign() method
- Use getattr() to safely handle cases where _value/raw_value don't exist yet
- All JAX backend functionality tested and working correctly
0 commit comments