Hi @ptrblck thank you so much for your kind reply. I try to convert my model from detectron2 to jit. I am unfamiliar with jit and could not find any example of torch.jit.is_scripting in open resources. If possible, would you please share us a snippet of how to use it?