faster bailout tests (#32266)
Summary:
Reduces the overhead of `prim::BailOut` nodes.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32266
Differential Revision: D19503336
Pulled By: Krovatkin
fbshipit-source-id: daa0c373f0fa17edd689600b75e7e4ba98b4670a