You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
torch._assert(attn_mask.dim() ==2, "Expected attn_mask of dim 2 but got {}".format(attn_mask.dim()))
129
+
torch._assert(attn_mask.size(0) ==target_length, "attn_mask shape didn't match for target length {}".format(target_length))
130
+
torch._assert(attn_mask.size(1) ==source_length, "attn_mask shape didn't match for source length {}".format(source_length))
131
+
torch._assert(attn_mask.is_floating_point() orattn_mask.dtype==torch.bool, f"Only float or bool types are supported for attn_mask not {attn_mask.dtype}")
torch._assert(attn_mask.dim() ==2, "Expected attn_mask of dim 2 but got {}".format(attn_mask.dim()))
227
+
torch._assert(attn_mask.is_floating_point() orattn_mask.dtype==torch.bool, f"Only float or bool types are supported for attn_mask not {attn_mask.dtype}")
0 commit comments