You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
When the arguments of the
QPFunctionFn
'sforward
are on GPU,rhs[:dim] = dl_dzhat[I]
,rhs[dim : dim + neq] = dl_dlams[I]
andrhs[dim + neq :] = dl_dnus[I]
fail becauserhs
is a numpy array on CPU, anddl_dzhat
,dl_dlams
anddl_dnus
are torch.tensors located on GPU.I'm working on a PR to fix this.
proxsuite/bindings/python/proxsuite/torch/qplayer.py
Line 196 in 15cde91
PR: #297
The text was updated successfully, but these errors were encountered: