Skip to content

Commit

Permalink
update vit
Browse files Browse the repository at this point in the history
  • Loading branch information
marsggbo committed Dec 12, 2022
1 parent b2f033a commit c4cdf95
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions hyperbox/networks/vit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .vit import *
13 changes: 13 additions & 0 deletions hyperbox/networks/vit/vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@
from hyperbox.mutables import spaces, ops


__all__ = [
'Attention',
'Transformer',
'VisionTransformer',
'ViT',
'ViT_S',
'ViT_B',
'ViT_H',
'ViT_G',
'ViT_10B',
]


# helpers
def pair(t):
return t if isinstance(t, tuple) else (t, t)
Expand Down

0 comments on commit c4cdf95

Please sign in to comment.