diff --git a/src/transformers/models/swiftformer/__init__.py b/src/transformers/models/swiftformer/__init__.py index addb8b3b546c61..b324ea174d551b 100644 --- a/src/transformers/models/swiftformer/__init__.py +++ b/src/transformers/models/swiftformer/__init__.py @@ -16,8 +16,8 @@ from ...utils import ( OptionalDependencyNotAvailable, _LazyModule, - is_torch_available, is_tf_available, + is_torch_available, ) diff --git a/src/transformers/models/swiftformer/modeling_tf_swiftformer.py b/src/transformers/models/swiftformer/modeling_tf_swiftformer.py index 84f76cac70d471..d6a6b4917d061a 100644 --- a/src/transformers/models/swiftformer/modeling_tf_swiftformer.py +++ b/src/transformers/models/swiftformer/modeling_tf_swiftformer.py @@ -16,13 +16,11 @@ import collections.abc -from typing import Optional, Tuple, Union, Dict - +from typing import Dict, Optional, Tuple, Union import tensorflow as tf from ...activations_tf import get_tf_activation - from ...modeling_tf_outputs import ( TFBaseModelOutputWithNoAttention, TFImageClassifierOutputWithNoAttention,