only compare attributes for meta tensors (#72508)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/72508
Todo:
- [x] document this behavior
- [x] add tests
Test Plan: Imported from OSS
Reviewed By: zou3519
Differential Revision: D34262452
Pulled By: ezyang
fbshipit-source-id: bc5c9653d5c3ad5c6efccc9c8e0efc0d28e15104
(cherry picked from commit 233142c88e4cff02825c7e233aba9411a6df3e9f)