Now the __array__ and __wrap_array__ interface are implemented in PyTorch, so you can pass Tensors directly to numpy functions and that should work out of the box. https://github.com/pytorch/pytorch/pull/2945 20