The Tensor and numpy array are using the same data, so it’s just a representation issue.
Try torch.set_printoptions(precision=10) and print gamma again. 
Also, could you give me the line throwing the RuntimeError?