Skip to content

np.diag not found in extra.py #2

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

Closed
Jushan-Randy-Chen opened this issue Oct 13, 2022 · 2 comments
Closed

np.diag not found in extra.py #2

Jushan-Randy-Chen opened this issue Oct 13, 2022 · 2 comments

Comments

@Jushan-Randy-Chen
Copy link

I believe I should change np.diag to xp.diag in EXTRA.py?

@liboyue
Copy link
Owner

liboyue commented Oct 13, 2022

Please add import numpy as np to the beginning of this file. __init__ is executed on CPUs so it should be np.diag. I'll update the code after some testing, thanks for the feedback!

@Jushan-Randy-Chen
Copy link
Author

thank you!

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

2 participants