dsgp4.util.clone_w_grad#

dsgp4.util.clone_w_grad(y)#

This function takes a tensor and returns a copy of it with gradients.

Parameters:#

y (torch.tensor): tensor to clone

Returns:#

torch.tensor: tensor with gradients