Imported from https://github.com/oeway/pytorch-deform-conv