torch.linalg — PyTorch master documentation
alband.github.io › doc_view › linalgtorch.linalg.norm (input, ord = None, dim = None, keepdim = False, *, out = None, dtype = None) → Tensor¶ Returns the matrix norm or vector norm of a given tensor. This function can calculate one of eight different types of matrix norms, or one of an infinite number of vector norms, depending on both the number of reduction dimensions and the value of the ord parameter.