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

Add auxiliary_variables for pytorch. #1318

Merged

Conversation

samuelburbulla
Copy link
Contributor

@samuelburbulla samuelburbulla commented May 15, 2023

Adds auxiliary_variables to pytorch.nn.

Includes a fix in backend.pytorch.tensor.to_tensor:
Use torch.stack instead of torch.to_tensor for list/tuple of torch.Tensors to keep track of gradients.

Related to #1311.

@samuelburbulla samuelburbulla force-pushed the feature/pytorch-add-auxiliaryvars branch from 32f2543 to f40d01b Compare May 31, 2023 06:33
@lululxvi lululxvi merged commit c466832 into lululxvi:master May 31, 2023
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