Skip to content

Commit

Permalink
fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
leej3 committed Apr 25, 2024
1 parent 67f3dab commit ff7f12c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ignite/metrics/frequency.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def reset(self) -> None:
self._acc = 0
self._n = 0
self._elapsed = 0.0
super(Frequency, self).reset()
super(Frequency, self).reset() # type: ignore

@reinit__is_reduced
def update(self, output: int) -> None:
Expand Down
2 changes: 1 addition & 1 deletion ignite/metrics/gan/fid.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def reset(self) -> None:
self._test_total = torch.zeros(self._num_features, dtype=torch.float64, device=self._device)
self._num_examples: int = 0

super(FID, self).reset()
super(FID, self).reset() # type: ignore

@reinit__is_reduced
def update(self, output: Sequence[torch.Tensor]) -> None:
Expand Down
2 changes: 1 addition & 1 deletion ignite/metrics/gan/inception_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def reset(self) -> None:
self._prob_total = torch.zeros(self._num_features, dtype=torch.float64, device=self._device)
self._total_kl_d = torch.zeros(self._num_features, dtype=torch.float64, device=self._device)

super(InceptionScore, self).reset()
super(InceptionScore, self).reset() # type: ignore

@reinit__is_reduced
def update(self, output: torch.Tensor) -> None:
Expand Down

0 comments on commit ff7f12c

Please sign in to comment.