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

Dealing with CPU/GPU in QPFunctionFn's backward #296

Closed
oumayb opened this issue Jan 19, 2024 · 0 comments
Closed

Dealing with CPU/GPU in QPFunctionFn's backward #296

oumayb opened this issue Jan 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@oumayb
Copy link
Contributor

oumayb commented Jan 19, 2024

When the arguments of the QPFunctionFn's forward are on GPU, rhs[:dim] = dl_dzhat[I], rhs[dim : dim + neq] = dl_dlams[I] and rhs[dim + neq :] = dl_dnus[I] fail because rhs is a numpy array on CPU, and dl_dzhat , dl_dlams and dl_dnus are torch.tensors located on GPU.
I'm working on a PR to fix this.

PR: #297

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants