YouTip LogoYouTip

Pytorch Torch Lobpcg

# LOBPCG Solve eigenvalues, eigenvectors = torch.lobpcg(A, X=X, k=k) print("Matrix shape:", A.shape) print("Eigenvalue:") print(eigenvalues)

The output result is:

Matrix shape: torch.Size([100, 100])Eigenvalues: tensor([105.0154, 101.8972, 98.6843])


Image 4: Pytorch torch Reference Manual Pytorch torch Reference Manual

← Pytorch Torch Log10Pytorch Torch Load β†’