fix bug in assertNotEqual for int tensors (#25412)
Summary:
re-apply: https://github.com/pytorch/pytorch/pull/25199
but without a failing quantized test
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25412
Differential Revision: D17131303
Pulled By: nairbv
fbshipit-source-id: edf7736af3ede5e809eded72be9514e922e70db4