News for hackers. Stuff that matters.
Re:I Don't Like NumPy by SimplyUnknown on Thursday May 15, 2025 @04:55PM (#43999255)
I really like einops. This works for numpy, pytorch and keras/tensorflow and has easy named transpose, repeat, and eimsum operations.
Re:I Don't Like NumPy by rsfern on Thursday May 15, 2025 @08:12PM (#44000605)
Same - I’ve been using einops and jaxtyping together pretty extensively recently and it helps a lot for reading/writing multidimensional array code. Also array_api_compat, the API coverage isn’t perfect but it’s pretty satisfying to write code that works for both PyTorch and numpy arrays

https://docs.kidger.site/jaxtyping/

https://data-apis.org/array-api-compat/