It will cause issues on the python side as well.
If you want a Tensor with the same content but that does not share autograd history, you should use .detach() (and the same c++ function when porting).