fix img_size type

This commit is contained in:
Xihua Dong 2025-04-18 09:13:55 -07:00 committed by Ross Wightman
parent 3ff3899026
commit 0c136f7dab

View File

@ -31,7 +31,7 @@ class PatchEmbed(nn.Module):
def __init__( def __init__(
self, self,
img_size: Optional[int] = 224, img_size: Union[int, Tuple[int, int]] = 224,
patch_size: int = 16, patch_size: int = 16,
in_chans: int = 3, in_chans: int = 3,
embed_dim: int = 768, embed_dim: int = 768,