-
Notifications
You must be signed in to change notification settings - Fork 68
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
Cloning of torch module behaves unexpectedly #1126
Comments
I tried to do this myself, but because > torchgen::generate("~/gh/torch")
Starting code generation ...
Error in `purrr::map_chr()`:
ℹ In index: 1.
Caused by error:
! Result must be length 1, not 0. |
This kind of still breaks when one wants to do something like |
I see, you are right! Perhaps you can add a method like Line 14 in 0e9fdd7
With the behavior you desire and then I can make the plumbing for it to be the default TBH I haven't executed much torchgen like this, almost always doing load_all() then |
Thanks a lot already for fixing the class of the cloned torch module!
I still observed some differences between the cloned object and the clonee, see below where the
weight
of the linear layer is missing the "nn_parameter" class.Created on 2023-12-18 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: