Skip to content

Commit 9eaddd9

Browse files
authored
Fixing python_type_check
1 parent 09c92bb commit 9eaddd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchvision/models/segmentation/segmentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _segm_model(
2828
name: str,
2929
backbone_name: str,
3030
num_classes: int,
31-
aux: bool,
31+
aux: Optional[bool],
3232
pretrained_backbone: bool = True
3333
) -> nn.Module:
3434
if 'resnet' in backbone_name:
@@ -80,7 +80,7 @@ def _load_model(
8080
pretrained: bool,
8181
progress: bool,
8282
num_classes: int,
83-
aux_loss: bool,
83+
aux_loss: Optional[bool],
8484
**kwargs: Any
8585
) -> nn.Module:
8686
if pretrained:

0 commit comments

Comments
 (0)