I tried to add symbolic in Deformable Convolution Class(before the forward function), and the issue would be solved.
from torch.onnx.symbolic_helper import parse_args
@parse_args('v', 'v', "v", 'v', 'v', "i", "i", "i", "i", "i")
def symbolic(g, input, offset, weight, stride=1, padding=0,
dilation=1, groups=1,
deformable_groups=1, im2col_step=64):
return g.op("DeformConv", input, offset, weight,strides_i=stride,
padding_i = padding, dilation_i=dilation, groups_i=groups,
deformable_group_i=deformable_groups, im2col_step_i = im2col_step, auto_pad_s="None")