TensorIterator: Check for memory overlap in all `nullary_op`s (#43421)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/43421
Test Plan: Imported from OSS
Reviewed By: ngimel
Differential Revision: D23298654
Pulled By: zou3519
fbshipit-source-id: 71b401f6ea1e3b50b830fef650927cc5b3fb940f