4 ms·
If you're into shape rotations with numpy arrays check out einopt. Also consider using "None" instead of "np.newaxis". To newcomers it's not as self-explanator
by cl3misch 2y ago
If you're into shape rotations with numpy arrays check out einopt.
Also consider using "None"
instead of "np.newaxis". To newcomers it's not as self-explanatory but it results in more readable code imho.
- dejavucoder 2y agothanks, will check out on einops more.
- majidmir 2y agoOr even better einx!