Is there a function can perturb a tensor?

I want to perturb a column of the input feature data randomly, but the input data has been transformed into a torch.Tensor, I don’t want to transform it back into numpy.ndarray to do the perturbation.

Is there a existed function, can do this?

Hi,
Please post the numpy code you need a pytorch equivalent for.