Skip to content

Commit f5c4d5c

Browse files
committedJan 11, 2025··
Add missing imports
1 parent 19aaea3 commit f5c4d5c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎timm/layers/attention2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List, Optional, Union
1+
from typing import List, Optional, Type, Union
22

33
import torch
44
from torch import nn as nn

‎timm/models/fastvit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
import os
99
from functools import partial
10-
from typing import List, Optional, Tuple, Union
10+
from typing import List, Optional, Tuple, Type, Union
1111

1212
import torch
1313
import torch.nn as nn

‎timm/models/swin_transformer_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Written by Ze Liu
1414
# --------------------------------------------------------
1515
import math
16-
from typing import Callable, List, Optional, Tuple, Union
16+
from typing import Callable, List, Optional, Tuple, Type, Union
1717

1818
import torch
1919
import torch.nn as nn

‎timm/models/vgg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Copyright 2021 Ross Wightman
77
"""
8-
from typing import Any, Dict, List, Optional, Union, cast
8+
from typing import Any, Dict, List, Optional, Type, Union, cast
99

1010
import torch
1111
import torch.nn as nn

0 commit comments

Comments
 (0)
Please sign in to comment.