Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

I feel like the elephant in the room is that for most cases in this blog post, you either use NumPy arrays or something else like it. You can make ndarray subclasses and that helps but type hinting and NumPy feels so… poorly done.


Try using jaxtyping: https://github.com/google/jaxtyping.

It also supports numpy/pytorch/etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: