Jit tracing failing (torch mangling diverging operator)

Hello,
While trying to jit trace a model with:

torch.jit.trace(model, example_inputs, check_inputs)

I get:

First diverging operator:
Node diff:
- %text_encoder : __torch__.attention_encoder.AttnEncoder = prim::GetAttr[name="text_encoder"](%self.1)
+ %text_encoder : __torch__.attention_encoder.___torch_mangle_80.AttnEncoder = prim::GetAttr[name="text_encoder"](%self.1)

Could someone assist me in understanding the meaning of this error and guide me on the steps to further debug it?

I’m using torch 1.12.0+cu113.

Thanks.