I think you need a rather to upgrade to from legacy THC to modern PyTorch (I think this has been looming for 2 years or so…). We don’t really do THCTensor* anymore, in fact there is an effort going on to migrate all these old bits internally as well.
Best regards
Thomas