yes, that’s what they mention on JIT makes model run x14 times slower in pytorch nightly · Issue #52286 · pytorch/pytorch · GitHub 16, that _jit_set_bailout_depth is undocumented.
I would expect it to be an option that is not exactly supposed to be accessible by the user, as both _C module and function are coded as “private”. That’s why I wonder if it’s the right solution.