orginal error:
/ops/deformable_convolution/src/cuda/dcn_v2_cuda.cu(107): error: identifier "THCState_getCurrentStream" is undefined

/ops/deformable_convolution/src/cuda/dcn_v2_cuda.cu(279): error: identifier "THCState_getCurrentStream" is undefined

2 errors detected in the compilation of "/tmp/tmpxft_0000125b_00000000-6_dcn_v2_cuda.cpp1.ii".

I change
  createBatchGemmBuffer<<<grid, block, 0, THCState_getCurrentStream(state)>>>(
... ... 
  modulated_deformable_im2col_cuda(THCState_getCurrentStream(state),
... ...

to
  createBatchGemmBuffer<<<grid, block, 0, at::cuda::getCurrentCUDAStream().stream()>>>(
... ... 
  modulated_deformable_im2col_cuda(at::cuda::getCurrentCUDAStream().stream(),
... ...

The issue fixed.