We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$detach()
library(torch) x = nn_parameter(torch_randn(1)) class(x) #> [1] "torch_tensor" "R7" "nn_parameter" class(x$detach()) #> [1] "torch_tensor" "R7"
Created on 2024-02-12 with reprex v2.0.2
The text was updated successfully, but these errors were encountered:
We could use a similar approach to what we did for clone, right?
Sorry, something went wrong.
Yes, I will PR it. Just noted it down here so it won't be forgotten and I did not want to include even more changes in the cloning PR.
fix(tensor): detach preserves attributes
dd9cb8d
mlverse#1136
88be6e1
No branches or pull requests
Created on 2024-02-12 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: