Revert "Revert D25003113: make validate debug-only in Device copy ctr" (#49123)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/49123
This reverts commit 7a4a2df2254b78d8c8d42b9f81b5b261a617466e.
Test Plan: Imported from OSS
Reviewed By: ezyang
Differential Revision: D25463531
Pulled By: bdhirsh
fbshipit-source-id: 7c7ecdc1d63ffd137b84a129887c424b2083a958