hi, I found the API document from official website is hard for me to understand.
torch.norm(tensor, p...)
p (int, float, inf, -inf, 'fro', 'nuc', optional) –
the order of norm. Default: 'fro'

I know there is a difference between matrix norm and vector norm.
the the problem is , all data is denoted by tensor, therefore, how do the pytorch know when to apply matrix norm or vector norm for give tensor?