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

Replace torch.Tensor and fix handling of batched ineq. constraints in QPlayer #308

Merged
merged 4 commits into from
Mar 14, 2024

Conversation

fabinsch
Copy link
Collaborator

@fabinsch fabinsch commented Mar 7, 2024

following #297, where we started to replace torch.Tensor.

The PyTorch doc says: torch.Tensor is an alias for the default tensor type (torch.FloatTensor).

For the rest of the tensors, we called either .double() or set dtype=torch.64. This is necessary, as these tensors contain the QP data which is passed to the proxsuite c++ bindings in forward and backward which are using the Scalar type double.

@fabinsch fabinsch changed the title Replace torch.Tensor in QPlayer Replace torch.Tensor and fix handling of batched ineq. constraints in QPlayer Mar 8, 2024
@jcarpent jcarpent merged commit 0398b24 into Simple-Robotics:devel Mar 14, 2024
61 of 75 checks passed
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

Successfully merging this pull request may close these issues.

2 participants