Can pytorch perform PCA?

Can pytorch perform PCA?

PCA consists of combinations of multiple linear operations, so the answer is YES.

You can even backpropagate through PCA if you want.

when calculate PCA, we need perform SVD, is this so slow in pytorch?