Skip to content

Conversation

@tommybotch
Copy link

Accessing the components via .data detaches gradients and returns the tensor for all options (even when detach=False).

Updated to remove .data and .detach will now handle removing gradients and returning the tensor

@tommybotch
Copy link
Author

Also if not detach was detaching gradients --> commands were backwards. Now changing to if detach

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.

1 participant