Is your feature request related to a problem? Please describe.
In Swin UNETR (see here), self.relative_position_index could be cloned since it is an in-place operation. This will address any potential issues with new versions of Pytorch DDP where cloning is required.
Describe the solution you'd like
Simply add self.relative_position_index.clone() to enhance it.