def PCA(x):
x = x
xm = torch.mean(x)
xc = torch.matmul(torch.transpose(xm, 0, -1), xm)
es, vs = torch.symeig(xc, eigenvectors=True)
return es, vs
Getting the following error. Any idea, please. Thanks in advanced.