Skip to content

Commit

Permalink
Fix type annotation in _ConvNd for in_channels (pytorch#84302)
Browse files Browse the repository at this point in the history
`_ConvNd` has an attribute `in_channels` that was mistakenly annotated as `_in_channels`.

This fixes pytorch#84223
Pull Request resolved: pytorch#84302
Approved by: https://github.com/albanD
  • Loading branch information
justinchuby authored and pytorchmergebot committed Sep 2, 2022
1 parent 3db3845 commit ae67099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/nn/modules/conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class _ConvNd(Module):
def _conv_forward(self, input: Tensor, weight: Tensor, bias: Optional[Tensor]) -> Tensor:
...

_in_channels: int
in_channels: int
_reversed_padding_repeated_twice: List[int]
out_channels: int
kernel_size: Tuple[int, ...]
Expand Down

0 comments on commit ae67099

Please sign in to comment.