Closed
Description
Bug Description
For some models which throw exceptions, the compilation process stuck at torch::jit::EliminateExceptions(). After inspection, it turns out that torch::jit::EliminateExceptions() might contradict with torch::jit::EliminateCommonSubexpression pass.
This can be fixed if we change the passing orders.
To Reproduce
This error can be reproduced using the model mentioned here: #1282