torch.Tensor. Every piece of data in deep learning — images, text, audio, video — gets converted into a tensor before the model can process it. Tensors are the universal language of AI..shape when debugging!x - x.mean() to center data, even though x is a matrix and x.mean() is a scalar. PyTorch automatically broadcasts the scalar across every element. Without broadcasting, you’d need to manually expand the mean to match the shape — broadcasting saves thousands of lines of code in ML.