Open inisis opened 1 year ago
without modification, using torch fx to trace detr will fail. this is a problem related to torch arange fucntion, and a workaround is to warp it, and replace torch.arange with torch_arange. after this, detr can be traced by torch fx
update position encoding to make detr torch fx traceable