Skip to content

Commit

Permalink
Fix type annotation for num_features in FrozenBatchNorm2d (#2462)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvukasin committed Jul 12, 2020
1 parent 750e38f commit ad0553c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchvision/ops/misc.py
Expand Up @@ -50,9 +50,9 @@ class FrozenBatchNorm2d(torch.nn.Module):

def __init__(
self,
num_features: Tuple[int, ...],
num_features: int,
eps: float = 0.,
n: Optional[Tuple[int, ...]] = None,
n: Optional[int] = None,
):
# n=None for backward-compatibility
if n is not None:
Expand Down

0 comments on commit ad0553c

Please sign in to comment.