[Swin, Swinv2] Fix attn_mask dtype
# What does this PR do?

This PR fixes the dtype of the `attn_mask`, making mixed precision training possible.

Fixes #17481
_The documentation is not available anymore as the PR was closed or merged._