No this is kind of a bug I guess I have seen the questions in stack exchanges I guess…  a fix would be to call  .double()
try :
delta_gt[0,i] = (shift[0] - p.anchor_tensor[i,0])/p.anchor_tensor[i,2].float()