@Anakin
int BilinearSamplerBHWD_updateOutput_cpu(THCudaTensor* inputImages, THCudaTensor* grids, THCudaTensor* output)
Is this the right function you want to paste? It seems this is a function running on cpu side, but accept CUDA tensor. Second thing is that, what you called is _C.BilinearSamplerBHWD_updateOutput without _cpu. Can you check?