PyTorch is much faster because NumPy arrays and PyTorch Tensors share the same memory locations, and pytoelrch tensors have. ‘numpy’ attribute.
-----