[jit] kill `shallowEquals` (#35005)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35005
This is one of the ad-hoc IValue equality implementations that should be
replaced with `operator==`.
Test Plan: Imported from OSS
Differential Revision: D20537900
Pulled By: suo
fbshipit-source-id: 5f31ee2386f9d0b33f2bc047a39351191f4d81b0