SIGN IN SIGN UP

fix override errors in masked causal vision transformer (#1913)

* Fix override type errors in MaskedCausalVisionTransformer

Add # type: ignore[override] to three method signatures:
- MaskedCausalAttention.forward
- MaskedCausalBlock.forward
- MaskedCausalVisionTransformer.forward_features

These classes intentionally use a simplified mask parameter API
while inheriting from timm's classes which use attn_mask, is_causal.
The override error is a false positive—method signatures are
different by design.

* feat: use proper timm's attention signature.

* fix: unecessary import

---------

Co-authored-by: Igor Susmelj <igor_7779@hotmail.com>
F
fruet committed
a00699bbeaa3e9f4ff879a7d0d6d4f211c793ff7
Parent: c792812
Committed by GitHub <noreply@github.com> on 4/23/2026, 2:04:04 PM