Assert that there are not duplicate sources for distinct arguments (#98738)
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98738
Approved by: https://github.com/albanD, https://github.com/bdhirsh