Fix the operator== for Argument (#23202)
Summary:
type() returns a shared pointer, we should compare its content, not pointer itself
Pull Request resolved: https://github.com/pytorch/pytorch/pull/23202
ghstack-source-id: 87125582
Reviewed By: zrphercule
Differential Revision: D16432634
fbshipit-source-id: 639e730dcdc1cec02f280efeea53019b36d9ae37