-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
torch.nn.ZeroPad2d is not scriptable #47528
Comments
Just curious- do we support such things given that the correct thing is to either create the module (and assign as attr) in |
@malfet since you are adding inline type annotations for nn.Module inference, this might be a case of regression, can you take a look? |
The problem originates from the fact that
results in the same non-descriptive |
I think this is what BroadcastingList is equivalent to |
@eellison, I see, so this should work:
|
Because they are one and the same Fixes pytorch#47528
馃悰 Bug
Runtime error thrown when trying to script model that calls
nn.ZeroPad2d
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Create scripted module correctly.
cc @gmagogsfm
The text was updated successfully, but these errors were encountered: