Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes part of #1725: [flake8] Remove unused imports in engine and contrib.engines #1734

Merged
merged 2 commits into from
Mar 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ignite/contrib/engines/common.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numbers
import warnings
from functools import partial
from typing import Any, Callable, Dict, Iterable, Mapping, Optional, Sequence, Tuple, Union, cast
from typing import Any, Callable, Dict, Iterable, Mapping, Optional, Sequence, Union, cast

import torch
import torch.nn as nn
Expand All @@ -18,7 +18,6 @@
PolyaxonLogger,
ProgressBar,
TensorboardLogger,
TrainsLogger,
VisdomLogger,
WandBLogger,
global_step_from_engine,
Expand Down
2 changes: 1 addition & 1 deletion ignite/engine/deterministic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import warnings
from collections import OrderedDict
from functools import wraps
from typing import Any, Callable, Generator, Iterator, List, Optional, cast
from typing import Any, Callable, Generator, Iterator, List, Optional

import torch
from torch.utils.data import DataLoader
Expand Down
1 change: 0 additions & 1 deletion ignite/engine/events.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import numbers
import warnings
import weakref
from enum import Enum
from types import DynamicClassAttribute
Expand Down