Typed Tensors: The need to properly manage tensor shape

Have you written/read PyTorch python code? Or in general code that mostly manipulates tensors. Have you found it hard to follow the logic…