Skip to content
Open
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
2 changes: 1 addition & 1 deletion dinov2/layers/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
XFORMERS_ENABLED = os.environ.get("XFORMERS_DISABLED") is None
try:
if XFORMERS_ENABLED:
from xformers.ops import scaled_index_add as _scaled_index_add, index_select_cat as _index_select_cat
from xformers.ops import fmha, scaled_index_add as _scaled_index_add, index_select_cat as _index_select_cat

def scaled_index_add(input, index, source, scaling, alpha):
is_proper_embed_dim = input.shape[-1] % 256 == 0
Expand Down