PyTorch tensors implement the __array__ method, which is used for the interop between numpy and PyTorch, if I’m not mistaken.
That being said, I would be careful with applying numpy operations directly on tensors especially if they require gradients and you want to backpropagate through them.