Skip to content

Commit

Permalink
Fix torchscript issue in ConvTranspose2d (#1917)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmassa committed Feb 25, 2020
1 parent 2160353 commit 2937d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/ops/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def forward(self, x):
list(self.output_padding),
)
]
output_shape = [x.shape[0], self.bias.shape[0]] + output_shape
output_shape = [x.shape[0], self.out_channels] + output_shape
return _new_empty_tensor(x, output_shape)

def super_forward(self, input, output_size=None):
Expand Down

0 comments on commit 2937d77

Please sign in to comment.