Pytorch之Upper Triangular Matrix Vectorization
Upper Triangular Matrix VectorizationDoes PyTorch has the function that would return me the vectorized upper triangular matrix?For example, I have Tensors as [ [1, 2, 3], [4, 5, 6], [7, 8, 9]]...