Apply contiguous on inputs of cdist backward (#70016)
Summary:
Description:
- Apply contiguous on inputs of cdist backward
- Added a test
Fixes https://github.com/pytorch/pytorch/issues/69997
cc ezyang albanD zou3519 gqchen pearu nikitaved soulitzer Lezcano Varal7
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70016
Reviewed By: ejguan
Differential Revision: D33187946
Pulled By: albanD
fbshipit-source-id: 645306aa043b2f84c4c2df0306fabfc224d746b6