STFT: Improve error message when window is on wrong device (#51128)
Summary:
Closes https://github.com/pytorch/pytorch/issues/51042
Pull Request resolved: https://github.com/pytorch/pytorch/pull/51128
Reviewed By: mruberry
Differential Revision: D26108998
Pulled By: ngimel
fbshipit-source-id: 1166c19c2ef6846e29b16c1aa06cb5c1ce3ccb0d