-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
model.copy()
is broken
#29170
Comments
Also it seems that the copy method is not documented: https://pytorch.org/docs/master/search.html?q=copy&check_keywords=yes&area=default seems to not show any method named |
I don't think |
Assigning to @ZolotukhinM as I believe he implemented |
I think @jerryzh168 fixed that in #29269 |
@bwasti can you provide an example? I can't reproduce with random scripted models |
@bwasti my PR is landed, could you verify if this is resolved? |
I'll close for now, feel free to re-open if the problem persists |
馃悰 Bug
Calling a scripted model.copy() is broken. Throws an error here:
To Reproduce
Steps to reproduce the behavior:
model.copy()
Expected behavior
Expected a copy to be made.
conda
,pip
, source): sourcecc @ezyang @gchanan @zou3519 @jerryzh168 @suo
The text was updated successfully, but these errors were encountered: