Skip to content
Open
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion dinov2/layers/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from xformers.ops import memory_efficient_attention, unbind

XFORMERS_AVAILABLE = True
warnings.warn("xFormers is available (Attention)")
else:
warnings.warn("xFormers is disabled (Attention)")
raise ImportError
Expand Down
1 change: 0 additions & 1 deletion dinov2/layers/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
from xformers.ops import fmha, scaled_index_add, index_select_cat

XFORMERS_AVAILABLE = True
warnings.warn("xFormers is available (Block)")
else:
warnings.warn("xFormers is disabled (Block)")
raise ImportError
Expand Down
1 change: 0 additions & 1 deletion dinov2/layers/swiglu_ffn.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def forward(self, x: Tensor) -> Tensor:
from xformers.ops import SwiGLU

XFORMERS_AVAILABLE = True
warnings.warn("xFormers is available (SwiGLU)")
else:
warnings.warn("xFormers is disabled (SwiGLU)")
raise ImportError
Expand Down