patrickkidger t1_j8fde35 wrote
On static shape checking: have a look at jaxtyping, which offers compile-time shape checks for JAX/PyTorch/etc.
(Why "JAX"typing? Because it originally only supported JAX. But it now supports other frameworks too! In particular I now recommend jaxtyping over my older "TorchTyping" project, which is pretty undesirably hacky.)
In terms of fitting this kind of stuff into a proper language: that'd be lovely. I completely agree that the extent to which we have retrofitted Python is pretty crazy!
Viewing a single comment thread. View all comments