pytorch
698be312 - Adding support for normalization of __is__ op (#57862)

Commit
4 years ago
Adding support for normalization of __is__ op (#57862) Summary: normalizing `__is__` to `eq`, and `__isnot__` to `ne` in the case of bools. Pull Request resolved: https://github.com/pytorch/pytorch/pull/57862 Test Plan: ``` python test/test_jit.py TestPeephole ``` 11 Tests, 1 skipped, no failures Fixes https://github.com/pytorch/pytorch/issues/57387 Reviewed By: eellison Differential Revision: D28335646 Pulled By: Gamrix fbshipit-source-id: c9f885044b32897ba35483091bcf7037759b7517
Author
Parents
Loading