RuntimeError: Expected object of type torch.DoubleTensor but found type torch.cuda.FloatTensor for argument #2 ‘other’
delta_gt[0,i] = (shift[0] - p.anchor_tensor[i,0])/p.anchor_tensor[i,2]

delta_gt, p.anchor_tensor are both torch.cuda.FloatTensor,  shift are scala,
delta_gt[0,i] has shape [1, 256]  and p.anchor_tensor[i,0]  has shape [256, 1],  shift[0] is scala
so, why did this line go wrong?   can’t float tensor divided by float tensor???
Is that a float tensor can only be divided by  a  double tensor???