Lets say we already have estimated the principal directions and eigenvalues of a dataset X using pytorch:
X
U, S, V = torch.svd(X)