Correctly compare Stream IValues (#47303)
Summary:
Stream IValue equality comparison was comparing wrong object.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/47303
Test Plan:
Added a new C++ test
Fixes #{issue number}
Reviewed By: bdhirsh
Differential Revision: D24752434
Pulled By: gmagogsfm
fbshipit-source-id: 78bc7a812740485ebbc7cf0c06c2e671a7ccd26f