Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torch.eig deprecated please use torch.linalg.eig for line 261 of hessian.py #17

Open
dsm-72 opened this issue Dec 10, 2022 · 2 comments

Comments

@dsm-72
Copy link
Contributor

dsm-72 commented Dec 10, 2022

No description provided.

@amkmpro
Copy link

amkmpro commented Mar 15, 2023

Hello, you must change these codes in 'hessian.py'
line 275:

 a_, b_ = torch.linalg.eig(T)

            eigen_list = a_.real
            weight_list = b_.real**2

@ybdai7
Copy link

ybdai7 commented Oct 11, 2023

I think more proper modification would be:

  a_, b_ = torch.linalg.eig(T)
  eigen_list = a_.real
  weight_list = b_.real[0,:]**2

according to the source code. It would be nice if the author can fix this. But i think this repo is no longer maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants