torch.Tensor.numpy(), PyTorch Developers, 2023 (PyTorch Foundation) - Official documentation for converting PyTorch tensors to NumPy arrays, detailing memory sharing characteristics and device requirements.
torch.from_numpy(), PyTorch Developers, 2023 (PyTorch Foundation) - Official documentation for creating PyTorch tensors from NumPy arrays, explaining memory sharing and data type compatibility.
Automatic differentiation package - torch.autograd, PyTorch Developers, 2023 - A comprehensive guide to PyTorch's automatic differentiation system, relevant for understanding requires_grad and the use of .detach() when interacting with NumPy.
Deep Learning with PyTorch, Eli Stevens, Luca Antiga, and Thomas Viehmann, 2020 (Manning Publications) - A practical book on PyTorch that covers foundational data handling, including interoperability between PyTorch tensors and NumPy arrays, offering practical examples and context.