@Anakin
I see. I think the problem is that in your python code. All the tensors (eg, your input tensor) will be converted to at::Tensor , so if your BilinearSamplerBHWD_xxxx functions accept legacy TH tensors, it won’t get called. My suggestion previous only solved the compile problem. I recommend you to switch to at::Tensor, since TH is legacy, we don’t have any more support on that.
I currently not sure how to let BilinearSamplerBHWD_xxxx get called with TH tensors under cpp extension, got a bit busy in the following 2 days, let me know if you want to stick with TH tensors, I can research on this after this Friday.