Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liangzelong committed Jan 15, 2023
1 parent aceee13 commit ffed2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmedit/models/losses/gan_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:

def r1_gradient_penalty_loss(discriminator: nn.Module,
real_data: torch.Tensor,
mask: Optional(torch.Tensor) = None,
mask: Optional[torch.Tensor] = None,
norm_mode: str = 'pixel',
loss_scaler: Optional[GradScaler] = None,
use_apex_amp: bool = False) -> torch.Tensor:
Expand Down

0 comments on commit ffed2c9

Please sign in to comment.